[1 of 1] Compiling Main ( /in/foo.hs, /tmp/Main.o )
/in/foo.hs:5:14: error:
Variable not in scope: forM :: [Integer] -> (a1 -> IO ()) -> m a0
/in/foo.hs:5:32: error:
* Couldn't match type `()' with `m b'
Expected type: a0 -> m b
Actual type: a0 -> ()
* In the second argument of `(>>=)', namely `return ()'
In the expression: forM p3 print >>= return ()
In the expression:
let
p1 = primesBounded n
p2 = dropWhile (< m) p1
p3 = filter isPalindromic p2
in forM p3 print >>= return ()
* Relevant bindings include
main :: IO (m b) (bound at /in/foo.hs:1:1)