Re: Case of "Language" pragma - bug?

2007-11-01 Thread Robin Bate Boerop
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 > >

Re[2]: Case of "Language" pragma - bug?

2007-10-31 Thread Bulat Ziganshin
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

Re: Case of "Language" pragma - bug?

2007-10-31 Thread Ian Lynagh
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.

Re: Case of "Language" pragma - bug?

2007-10-31 Thread Malcolm Wallace
> > 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

Re: Case of "Language" pragma - bug?

2007-10-31 Thread kahl
> > 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

RE: Case of "Language" pragma - bug?

2007-10-31 Thread Simon Peyton-Jones
| "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

RE: Case of "Language" pragma - bug?

2007-10-30 Thread Seth Kurtzberg
-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

Case of "Language" pragma - bug?

2007-10-30 Thread Robin Bate Boerop
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