Should be possible to specify pragmas with mixed case
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.
Trac metadata
Trac field | Value |
---|---|
Version | 6.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler (Parser) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Unknown |