[Haskell-cafe] Parse error
Andrew Coppin
andrewcoppin at btinternet.com
Sun Jan 17 05:05:47 EST 2010
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...
More information about the Haskell-Cafe
mailing list