#4220: EmptyDataDecls + DeriveFunctor == Panic!
--------------------------------------------+-------------------------------
Reporter: conal | Owner: simonpj
Type: bug | Status: closed
Priority: normal | Milestone: 6.14.1
Component: Compiler | Version: 6.12.3
Resolution: fixed | Keywords:
Testcase: deriving/should_compile/T4220 | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Compile-time crash |
--------------------------------------------+-------------------------------
Changes (by simonpj):
* status: new => closed
* testcase: => deriving/should_compile/T4220
* resolution: => fixed
Comment:
In the end I did the simplest thing. Fixed by
{{{
Thu Aug 12 14:13:19 BST 2010 [email protected]
* Fix Trac #4220
For deriving Functor, Foldable, Traversable with empty
data cons I just generate a null equation
f _ = error "urk"
There are probably more lurking (eg Enum) but this will do for now.
}}}
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4220#comment:8>
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