> 
> In GHC 5.02 on Sun Solaris (binary package), running 'ghc-5.02 -c
> -fglasgow-exts Test.hs' and Test.hs containing the following code:
> > module Test where
> > bimapGRose __ff __a = ((to ((bimapEP epGRose) epGRose)) 
> >     ((bimapGRose__ __ff) __a))
> 
> Gives the following panic message:
> | ghc-5.02: panic! (the `impossible' happened, GHC version 5.02):
> |        parser/Parser.hs:5394: Non-exhaustive patterns in case
> |
> | Please report it as a compiler bug to 
> [EMAIL PROTECTED],
> | or http://sourceforge.net/projects/ghc/.
> 
> The problem does not occur when '-fglasgow-exts' is omitted, 
> but we need
> the universally quantified types...

Thanks for the report.  When -fglasgow-exts is on, there are a bunch of
extra reserved keywords that all begin with two underscores, eg. '__a'.
These keywords are used in interface files.  

The fact that the keyword triggered a panic rather than a parse error is
really a bug in Happy, which I'll look into fixing, and we'll also be
sure to add a note in the documentation about the extra reserved words.

Cheers,
        Simon

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to