Simon wrote:
I know about this one, but haven't got around to fixing it yet. The parse
error is on a semicolon generated by the layout system, as you probably
guessed, which is why there's no token available to print in the error
message. Any thoughts on what a suitable error message should
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