lift-generics: GHC.Generics-based Language.Haskell.TH.Syntax.lift implementation
This package provides a GHC.Generics-based
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]
|Versions||0.1, 0.1.1, 0.1.2|
|Dependencies||base (>=4.3 && <5), generic-deriving (>=1.9 && <2), ghc-prim, template-haskell (>=2.4 && <2.13) [details]|
|Copyright||(C) 2015 Ryan Scott|
|Maintainer||Ryan Scott <email@example.com>|
|Revised||Revision 1 made by ryanglscott at Mon Apr 10 11:47:11 UTC 2017|
|Source repo||head: git clone https://github.com/RyanGlScott/lift-generics|
|Uploaded||by ryanglscott at Sun Feb 7 21:01:40 UTC 2016|
|Distributions||LTSHaskell:0.1.2, NixOS:0.1.2, Stackage:0.1.2|
|Downloads||895 total (21 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
|Status||Docs available [build log]
Last success reported on 2016-02-12 [all 1 reports]
Hackage Matrix CI
- lift-generics-0.1.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
For package maintainers and hackage trustees