[cvs-nhc98] parse errors with where and explicit layout

Ian Lynagh igloo@earth.li
Wed, 19 Dec 2001 17:44:08 +0000


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