[GHC] #4815: Instance constraints should be used when deriving on associated data types

GHC ghc-devs at haskell.org
Mon Oct 24 23:48:56 UTC 2016


#4815: Instance constraints should be used when deriving on associated data types
-------------------------------------+-------------------------------------
        Reporter:  batterseapower    |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Compiler          |              Version:  6.12.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 Ah, the comparison to `-XDatatypeContexts` is definitely a compelling
 argument for the current behavior. I'll quit my job as devil's advocate,
 then.

 In that case, that cements my opinion that associated data family
 instances should be totally unrelated to the instance context of the
 parent instance, and moreover, that the bug is really just a duplicate of
 #11008 in disguise, as the fix for this issue would be improving GHC's
 ability to infer exotic constraints.

 Should we close it?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/4815#comment:16>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list