The lift-generics package

[Tags:bsd3, library, test]

This package provides a GHC.Generics-based genericLiftWithPkg function (intended for GHC 7.10 and earlier), as well as a genericLift function (only available on GHC 8.0 and later), both of which can be used for providing a Language.Haskell.TH.Syntax.lift implementation. See the documentation in the Language.Haskell.TH.Lift.Generics module to get started.

Credit goes to Matthew Pickering for suggesting this idea.

Note that due to API limitations, GHC.Generics wasn't powerful enough to come up with the entirety of a lift implementation prior to GHC 8.0. For this reason, genericLiftWithPkg requires you to produce the package name yourself, which proves to be no small feat (see the documentation for more info).

Luckily, you don't have to jump through as many hoops on GHC 8.0 and later: simply use the genericLift function, and life is good.


[Skip to Readme]

Properties

Versions 0.1, 0.1.1
Change log CHANGELOG.md
Dependencies base (>=4.3 && <5), generic-deriving (>=1.9 && <2), ghc-prim, template-haskell (>=2.4 && <2.13) [details]
License BSD3
Copyright (C) 2015 Ryan Scott
Author Ryan Scott
Maintainer Ryan Scott <ryan.gl.scott@gmail.com>
Category Language
Home page https://github.com/RyanGlScott/lift-generics
Bug tracker https://github.com/RyanGlScott/lift-generics/issues
Source repository head: git clone https://github.com/RyanGlScott/lift-generics
Uploaded Sun Feb 7 21:01:40 UTC 2016 by ryanglscott
Updated Mon Apr 10 11:47:11 UTC 2017 by ryanglscott to revision 1
Distributions LTSHaskell:0.1.1, NixOS:0.1.1, Stackage:0.1.1, Tumbleweed:0.1.1
Downloads 197 total (15 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2016-02-12 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for lift-generics

Readme for lift-generics-0.1.1

lift-generics

Haskell Programming Language Hackage Dependencies Haskell Programming Language BSD3 License Build

This package provides a GHC.Generics-based genericLiftWithPkg function (intended for GHC 7.10 and earlier), as well as a genericLift function (only available on GHC 8.0 and later), both of which can be used for providing a Language.Haskell.TH.Syntax.lift implementation. See the documentation in the Language.Haskell.TH.Lift.Generics module to get started.

Credit goes to Matthew Pickering for suggesting this idea.

Note that due to API limitations, GHC.Generics wasn't powerful enough to come up with the entirety of a lift implementation prior to GHC 8.0. For this reason, genericLiftWithPkg requires you to produce the package name yourself, which proves to be no small feat (see the documentation for more info).

Luckily, you don't have to jump through as many hoops on GHC 8.0 and later: simply use the genericLift function, and life is good.