[1 of 1] Compiling Main ( /in/foo.hs, /tmp/Main.o )
/in/foo.hs:15:21: error:
Variable not in scope: putIntLn :: Int -> IO ()
/in/foo.hs:17:5: error:
Variable not in scope: putIntLn :: Int -> Maybe b
/in/foo.hs:17:5: error:
* Couldn't match type `Maybe' with `IO'
Expected type: IO b
Actual type: Maybe b
* In a stmt of a 'do' block: putIntLn =<< caluclate
In the expression:
do { case caluclate of {
Just res -> putIntLn res
Nothing -> putStrLn "Nothing" };
putIntLn =<< caluclate }
In an equation for `main':
main
= do { case caluclate of {
Just res -> putIntLn res
Nothing -> putStrLn "Nothing" };
putIntLn =<< caluclate }