green-card in cvs does not compile [low priority]

Simon Marlow simonmar at microsoft.com
Fri Mar 9 05:44:48 EST 2001


> Thu, 8 Mar 2001 15:53:19 +0100, Sigbjorn Finne 
> <sigbjorn_finne at hotmail.com> pisze:
> 
> > Happy 1.9 (and later) imposes a restriction on the possible types
> > a monadic lexer can have,
> 
> What restriction?

The lexer has to be polymorphic now.

	lexer :: (Token -> P a) -> P a

before you could replace 'a' with the return type of your parser.  This
doesn't work too well if the parser has multiple return types (the
feature added in Happy 1.9), so the restriction was added.

Cheers,
	Simon




More information about the Glasgow-haskell-bugs mailing list