Ticket #2847 (closed bug: fixed)
Failure on OPTION_* pramgas other than GHC
| Reported by: | NeilMitchell | Owned by: | igloo |
|---|---|---|---|
| Priority: | high | Milestone: | 6.10.2 |
| Component: | Compiler | Version: | 6.10.1 |
| Keywords: | Cc: | ndmitchell@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
