parse errors with where and explicit layout

Hiyas, The module module Q where f = 3 where { a = 3; } gives me 5:7 Found _where_ but expected a {-end-of-definition-or-EOF-} Thanks Ian

The module module Q where f = 3 where { a = 3; } gives me 5:7 Found _where_ but expected a {-end-of-definition-or-EOF-}
The trailing semicolon at the end of the _where_ block is not permitted by Haskell'98 (I think - it isn't easy to find in the Report!). Regards, Malcolm

On Wed, Dec 19, 2001 at 05:23:45PM +0000, Malcolm Wallace wrote:
The module module Q where f = 3 where { a = 3; } gives me 5:7 Found _where_ but expected a {-end-of-definition-or-EOF-}
The trailing semicolon at the end of the _where_ block is not permitted by Haskell'98 (I think - it isn't easy to find in the Report!).
Aha, but it isn't. It's followed by a cdecl cdecl -> gendecl -> empty Thanks Ian
participants (2)
-
Ian Lynagh
-
Malcolm Wallace