[GHC] #10607: Auto derive from top to bottom

GHC ghc-devs at haskell.org
Tue Oct 24 06:58:58 UTC 2017


#10607: Auto derive from top to bottom
-------------------------------------+-------------------------------------
        Reporter:  songzh            |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:  deriving,
                                     |  typeclass, auto
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #13324            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by songzh):

 Dear All

 I am very happy to  announce that I released `derive-topdown-0.0.0.9`. I
 tested with `Info` type in `template-haskell` and `HsModule` type in
 `haskell-src`. It can derive class instances for most common cases I
 think. It also can be used with other type classes with template Haskell
 deriving mechanism via a function with type `Name -> Q [Dec]`. I also
 considered `DerivingStrategies` in GHC 8.2. Please try it if you are
 interested.

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


More information about the ghc-tickets mailing list