[GHC] #1133: auto-derivation of Enum is disallowed with
recursive imports
GHC
trac at galois.com
Tue Feb 6 12:27:50 EST 2007
#1133: auto-derivation of Enum is disallowed with recursive imports
----------------------+-----------------------------------------------------
Reporter: heatsink | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
----------------------+-----------------------------------------------------
Comment (by simonpj):
Are you sure you are using -fglasgow-exts. I have just compiled your
example with GHC 6.6, thus
{{{
bash-3.1$ ghc -c -fglasgow-exts X.hs-boot X.hs
bash-3.1$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.6
bash-3.1$
}}}
And all is happy. Without -fglasgow-exts it fails, because in Haskell 98
you can't derive Enum for a newtype.
Can you double check your test case and send and exact log of what
happened? Remove all .o and .hi and .hi-boot files first.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1133>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list