[GHC] #10598: DeriveAnyClass and GND don't work well together

GHC ghc-devs at haskell.org
Wed Jul 22 14:30:42 UTC 2015


#10598: DeriveAnyClass and GND don't work well together
-------------------------------------+-------------------------------------
        Reporter:  osa1              |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.11
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by osa1):

 @rwbarton, sorry if I'm misunderstand things, but I think `DeriveAnyClass`
 isn't deriving `Functor` because of an implementation bug and not because
 how it's designed. I think we should reconsider design of `DeriveAnyClass`
 and make the documentation more clear about it.

 As usual, I'm willing to work on this :)

 FWIW, I have a patch that fixes(based on my understanding of
 `DervieAnyClass`) some specific cases but without specifying it better
 it's pointless.

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


More information about the ghc-tickets mailing list