bug in hslibs/hssource/HsLexer.lhs (and bugfix)

Simon Marlow simonmar at microsoft.com
Wed Dec 12 05:57:56 EST 2001


> Hi GHC people,
> 
> I think there is a bug in hslibs/hssource/HsLexer.lhs
> 
> For the following code:
> 
>     foo = 1 Prelude.: []
> 
> The lexer mistakes the qualified constructor "Prelude.:" as a 
> variable.
> 
> The problem is due to the use of the variable 'c' instead of the
> variable 'c1' on line 290 of HsLexer.lhs

Thanks and well spotted.  I've applied your fix.

Cheers,
	Simon




More information about the Glasgow-haskell-bugs mailing list