Case of "Language" pragma - bug?

Robin Bate Boerop robin_bb at acm.org
Fri Nov 2 02:13:05 EDT 2007


Thanks for filing the bug, Ian.

On 31/10/2007, Ian Lynagh <igloo at earth.li> wrote:
> 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

-- 
Robin Bate Boerop


More information about the Glasgow-haskell-users mailing list