There are a handful of ways to do this. My preferred one would be to use isInfinite from the Prelude:
test :: Int -> Int -> String
test a b = case fromIntegral a / fromIntegral b of
x | isInfinite x && x > 0 -> "fool"
| otherwise -> show x
Alternately, you could define infinity as in this question and compare for equality (since Infinity == Infinity).
Your code also had a couple of issues I assume are unrelated to your question:
Show should be show
(/) doesn't work for Int arguments, so you need to use fromIntegral to convert a and b to something floating
I also suspect you aware this particular function doesn't require an infinity check...
test :: Int -> Int -> String
test a 0 | a > 0 = "fool"
| otherwise = show (fromIntegral a / fromIntegral b)