#2847: Failure on OPTION_* pramgas other than GHC
-----------------------------+----------------------------------------------
Reporter:  NeilMitchell      |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.1            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 GHC should not attempt to look at other peoples pragmas. For example:

 {{{
 {-# OPTIONS_DERIVE --derive=Data,Typeable,Eq,Ord #-}
 module Example where
 data Foo = Bar
 }}}

 This worked fine with GHC 6.8, but doesn't with GHC 6.10. It says:

 {{{
 C:\Neil\derive>ghc Example.hs -c
 Example.hs:1:11-48:
     unknown flag in  {-# OPTIONS #-} pragma: _DERIVE
 Example.hs:1:11-48:
     unknown flag in  {-# OPTIONS #-} pragma: --derive=Data,Typeable,Eq,Ord
 }}}

 I consider this to be a major regression, as it breaks (amongst other
 things) the Yhc compiler, the Derive tool, and my thesis. I suspect it
 will also break anything Malcolm has set up with OPTION_YHC or OPTION_NHC
 pragmas.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2847>
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