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...
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe