[GHC] #1817: Should be possible to specify pragmas with mixed case

GHC trac at galois.com
Wed Oct 31 16:43:20 EDT 2007


#1817: Should be possible to specify pragmas with mixed case
--------------------------------+-------------------------------------------
  Reporter:  igloo              |          Owner:             
      Type:  bug                |         Status:  new        
  Priority:  normal             |      Milestone:  6.10 branch
 Component:  Compiler (Parser)  |        Version:  6.6.1      
  Severity:  normal             |       Keywords:             
Difficulty:  Unknown            |             Os:  Unknown    
  Testcase:                     |   Architecture:  Unknown    
--------------------------------+-------------------------------------------
 Reported here: http://www.haskell.org/pipermail/glasgow-haskell-
 users/2007-October/013313.html

 {{{
 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?
 }}}

 Either the documentation or code should be fixed. In the thread linked to
 above some people spoke up in favour of supporting what the manual claims,
 so ideally it should be the code that is fixed.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1817>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list