Case of "Language" pragma - bug?

Robin Bate Boerop robin_bb at acm.org
Tue Oct 30 15:13:42 EDT 2007


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 the  
pragma, the pragma is ignored.  Is this a documentation bug?

To test the problem, one can use "ghc --make testpragma1.hs" and "ghc  
--make testpragma2.hs" on the following:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testpragma1.hs
Type: application/octet-stream
Size: 81 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20071030/9a2accbc/testpragma1.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testpragma2.hs
Type: application/octet-stream
Size: 81 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20071030/9a2accbc/testpragma2.obj
-------------- next part --------------

-- 
Robin Bate Boerop





More information about the Glasgow-haskell-users mailing list