[EMAIL PROTECTED] reports the following problem.
Version: 1.4 (January 1998)
OS: MS Windows NT4.0 SP3 ...
compiler: hugs
configuration:
Expected behaviour:
Hi,
This isn't a bug however it is very confusing for beginners. An erroneous program such
as:
x =
gives an error message like:
ERROR "test1.hs" (line 3): Syntax error in expression (unexpected `}')
when there is no } in the program, and similarly eg:
x =
y = 1
gives the message:
ERROR "test1.hs" (line 2): Syntax error in expression (unexpected `;')
when there is no ; in the program.
I understand why hugs gives these error messages, but it is confusing for beginners. I
think it would be preferable to give a more accurate error message or a more general
one e.g. without the unexpected bit. Few people write free form Haskell programs.
Cheers,
Paul
(Paul Roe: [EMAIL PROTECTED])
Observed behaviour:
Transcript:
Code: