#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_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs