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

GHC ghc-devs at haskell.org
Sat Sep 24 08:23:55 UTC 2016


#10598: DeriveAnyClass and GND don't work well together
-------------------------------------+-------------------------------------
        Reporter:  osa1              |                Owner:  RyanGlScott
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:  Generics
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2280
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nomeata):

 Motivated by the lightning talk, a note on the wording “bespoke”. To me,
 “bespoke” would be a instance that is tailored to my needs (e.g. “ignore
 field x in the Eq instance, because it is just a cached value that depends
 on the other”). The derived instance is not bespoke in that sense. It is
 more of a stock instance. How about `deriving stock Eq` instead?

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


More information about the ghc-tickets mailing list