RE: Confusing error message in case of layout-related syntax error

1999-09-03 Thread Malcolm Wallace
Main.hs:3: parse error on input ';' (inserted by layout) Incomplete expression on previous line or incorrect indentation of the current line. I think Manuel's suggestion is a definite improvement here. For interest, another Haskell compiler, nhc98, gives the message 4:5

Confusing error message in case of layout-related syntax error

1999-08-29 Thread Manuel M. T. Chakravarty
For foo = let x = (1, 2 y = 3 in fst x + y GHC 4.04 gives me Main.hs:3: parse error on input `' Interesting, but not very informative ;-) I also have the feeling that GHC is sometimes off by a couple of lines when reporting errors in bigger modules -