#2847: Failure on OPTION_* pramgas other than GHC
---------------------------------+------------------------------------------
    Reporter:  NeilMitchell      |        Owner:                  
        Type:  bug               |       Status:  new             
    Priority:  high              |    Milestone:  6.10.2          
   Component:  Compiler          |      Version:  6.10.1          
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by igloo):

 Replying to [comment:6 duncan]:
 > See `ghc/compiler/parser/Lexer.x` line 267:
 >
 > {{{
 > "{-#" $whitechar*
 
(OPTIONS_HUGS|options_hugs|OPTIONS_NHC98|options_nhc98|OPTIONS_JHC|options_jhc|CFILES|cfiles)
 > }}}
 >
 > Clearly this is not the right approach.

 We need this to be able to warn about unrecognised pragmas.

 But we also need to not parse `OPTIONS_foo` as an `OPTIONS` pragma, so we
 don't try to treat `_foo` and the pragma contents as a flag.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2847#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to