[GHC] #12423: Panic with DeriveAnyClass

GHC ghc-devs at haskell.org
Thu Aug 25 23:53:10 UTC 2016


#12423: Panic with DeriveAnyClass
-------------------------------------+-------------------------------------
        Reporter:  knrafto           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:  Generics
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #12144            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 I apologize, comment:3 is wrong in stating that you can't derive an `Eq1`
 instance for `Foo`. It is most certainly possible to–after all, you can
 create the following instance!

 {{{#!hs
 instance Eq1 Foo
 }}}

 That eta-reduction stuff was me confusing the details of `DeriveAnyClass`
 with other deriving mechanisms, like `GeneralizedNewtypeDeriving` and
 `DeriveFunctor`.

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


More information about the ghc-tickets mailing list