
Hi, With the module { main = undefined foo = 5 } 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_ and with 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_ Thanks Ian

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

On Tue, Dec 11, 2001 at 01:52:34PM +0000, Malcolm Wallace wrote:
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.
Aaaarggg, sorry, ignore me. My brain was putting {n} tokens in wrongly. Ian
participants (2)
-
Ian Lynagh
-
Malcolm Wallace