[GHC] #1830: Automatic derivation of Lift

GHC ghc-devs at haskell.org
Mon Aug 24 19:14:58 UTC 2015


#1830: Automatic derivation of Lift
-------------------------------------+-------------------------------------
        Reporter:  guest             |                   Owner:
                                     |  RyanGlScott
            Type:  feature request   |                  Status:  new
        Priority:  normal            |               Milestone:  ⊥
       Component:  Template Haskell  |                 Version:  6.8.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:  Phab:D1168
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 Replying to [comment:12 mpickering]:
 > Is it possible to derive these instances using GHC.Generics?

 I believe so, although with `GHC.Generics` you cannot have special cases
 for unlifted types like `Int#` (currently, the Phab differential uses the
 [http://hackage.haskell.org/package/template-haskell-2.10.0.0/docs
 /Language-Haskell-TH-Syntax.html#t:Lit Lit] type from `template-haskell`
 to deal with them).

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


More information about the ghc-tickets mailing list