Case of "Language" pragma - bug?

Ian Lynagh igloo at earth.li
Wed Oct 31 16:43:47 EDT 2007


On Wed, Oct 31, 2007 at 02:46:13PM +0000, Malcolm Wallace wrote:
> >  > Yes at the moment we allow
> >  >         LANGUAGE
> >  >         language
> >  > but not
> >  >         Language
> >  > or
> >  >         LanGUAge
> > 
> > Being allowed to write
> >   Language
> > would be nice
> 
> I concur.  Surely it is easy to just (map toLower) over the pragma
> identifier before comparison with known pragma names?

Currently the lexer looks for them as regexps, e.g.
    "{-#" $whitechar* (LANGUAGE|language) { token ITlanguage_prag }

I've filed a bug for this here:
http://hackage.haskell.org/trac/ghc/ticket/1817


Thanks
Ian



More information about the Glasgow-haskell-users mailing list