[nhc-bugs] Parse problems

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Tue, 11 Dec 2001 13:52:34 +0000


> With the modules
>     {
>      main = undefined
>      foo = 5
>     }
> and
>     module Foo where {
>      foo = 5
>      bar = 6
>     }
> I get
>     4:6 Found = but expected one of }' ; {-end-of-definition-} prefix
>     _infix_ _infixr_ _infixl_ <string> <char> <rational> <integer> ~ [ ( _
>     <conid> <varid> ` <varop> <conop> foreign _default_ _instance_ _class_
>     _data_ _newtype_ _type_

Ok, so the error message is not very good, but what is the bug?
The program is incorrect - it uses explicit layout, but is missing
a semicolon between the two value definitions.

Regards,
    Malcolm