Ticket #1817 (closed bug: fixed)
Should be possible to specify pragmas with mixed case
| Reported by: | igloo | Owned by: | squadette |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.12.1 |
| Component: | Compiler (Parser) | Version: | 6.6.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
