[cvs-nhc98] nhc doesn't cope with funlhs -> ( funlhs ) apat {apat}

Ian Lynagh igloo@earth.li
Wed, 19 Dec 2001 19:02:27 +0000


On Wed, Dec 19, 2001 at 05:58:39PM +0000, Malcolm Wallace wrote:
> > This module:
> >     module Q where
> >     f :: Int -> Int -> Int
> >     (f a) b = a + b
> > causes
> >     Fail: Need infix operator at 5:9
> > (5:9 being the b) but it is valid as
> >     funlhs -> ( funlhs ) apat {apat}
> 
> This is a known (and documented) bug in nhc98's parser.  It is not
> easy to fix.

Bother. OK, it looks like I will have to switch to ghc for my main
testing then.


Thanks
Ian