> >       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 Found ;' but expected one of ) ,
which is perhaps a little bit cryptic, but could be improved to
    4:5 Found <end-of-definition> but expected one of ) ,
which I think is very clear.

Regards,
    Malcolm

Reply via email to