[GHC] #15961: TH 'Lift' instance for 'NonEmpty'

GHC ghc-devs at haskell.org
Wed Nov 28 22:29:15 UTC 2018


#15961: TH 'Lift' instance for 'NonEmpty'
-------------------------------------+-------------------------------------
        Reporter:  fr33domlover      |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.6.3
       Component:  Template Haskell  |              Version:  8.6.2
      Resolution:                    |             Keywords:  lift,
                                     |  instance, nonempty
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by harpocrates):

 Please avoid using the default `Data` implementations of `Lift` (or at
 least explicitly define `lift = liftData`). For existing code, I would use
 `-XStandaloneDeriving` and `-XDeriveLift`.

 {{{
 deriving instance Lift a => Lift (NonEmpty a)
 }}}

 I agree we should put instances in `template-haskell` now that `NonEmpty`
 is in `base`. I'll put up a patch and we can see what others think.

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


More information about the ghc-tickets mailing list