Thanks for filing the bug, Ian.
On 31/10/2007, Ian Lynagh <[EMAIL PROTECTED]> wrote:
> On Wed, Oct 31, 2007 at 02:46:13PM +, Malcolm Wallace wrote:
> > > > Yes at the moment we allow
> > > > LANGUAGE
> > > > language
> > > > but not
> > > > Language
> > > > or
> >
Hello Ian,
Wednesday, October 31, 2007, 11:43:47 PM, you wrote:
> Currently the lexer looks for them as regexps, e.g.
> "{-#" $whitechar* (LANGUAGE|language) { token ITlanguage_prag }
standard solution: [l|L][a|A]...
--
Best regards,
Bulatmailto:[EMAIL PROTECT
On Wed, Oct 31, 2007 at 02:46:13PM +, 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.
> > 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
>
> Yes at the moment we allow
> LANGUAGE
> language
> but not
> Language
> or
> LanGUAge
>
> We'll probably just change the documentation unless people yell loudly
Being allowed to write
Language
would be nice --- even if this is turned into the o
| "Pragmas all take the form {-# word ... #-} where word indicates the type of
| pragma, and is followed optionally by information specific to that type of
| pragma. Case is ignored in word."
|
| However, when I use "Language CPP" instead of "LANGUAGE CPP" in the pragma,
| the pragma is ignored. I
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin Bate
Boerop
Sent: Tuesday, October 30, 2007 3:14 PM
To: glasgow-haskell-users@haskell.org
Subject: Case of "Language" pragma - bug?
I'm using GHC 6.6.1. The manual says:
"Pragm
I'm using GHC 6.6.1. The manual says:
"Pragmas all take the form {-# word ... #-} where word indicates the
type of pragma, and is followed optionally by information specific to
that type of pragma. Case is ignored in word."
However, when I use "Language CPP" instead of "LANGUAGE CPP" in th