
#10318: Cycles in class declaration (via superclasses) sometimes make sense. -------------------------------------+------------------------------------- Reporter: ekmett | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 7.10.1 checker) | Keywords: Resolution: | Architecture: Operating System: Unknown/Multiple | Unknown/Multiple Type of failure: GHC rejects | Test Case: valid program | Blocking: Blocked By: | Differential Revisions: Related Tickets: | -------------------------------------+------------------------------------- Comment (by simonpj): What you are asking for looks jolly hard to me. On the other hand, your middle solution looks pretty easy, perhaps with {{{ type ID a = (AID a, AID (Frac a)) }}} I find it hard to believe that using this would cause a "few thousand lines of code hacking around the limitation". Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10318#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler