Ticket #1817 (new bug)

Opened 1 year ago

Last modified 6 days ago

Should be possible to specify pragmas with mixed case

Reported by: igloo Assigned to:
Priority: normal Milestone: 6.10 branch
Component: Compiler (Parser) Version: 6.6.1
Severity: normal Keywords:
Cc: Difficulty: Unknown
Test Case: Architecture: Unknown/Multiple
Operating System: Unknown/Multiple

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

09/30/08 08:37:24 changed by simonmar

  • architecture changed from Unknown to Unknown/Multiple.

09/30/08 08:51:33 changed by simonmar

  • os changed from Unknown to Unknown/Multiple.