
17 Jan
2010
17 Jan
'10
5:05 a.m.
Is there a specific reason why GHC consistently refuses to accept the following perfectly reasonable code snippet? main = do putStrLn "Line 1" putStrLn "Line 2" let xs = do x <- [1..10] y <- [1..10] return (x+y) print xs No matter which way I rearrange this, it *insists* that there's a parse error. This is very frustrating, given that it's utterly clear what I want...