File lift-generics.cabal of Package ghc-lift-generics
name: lift-generics
version: 0.1.1
x-revision: 1
synopsis: GHC.Generics-based Language.Haskell.TH.Syntax.lift implementation
description: 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
<https://ghc.haskell.org/trac/ghc/ticket/1830#comment:12 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.
homepage: https://github.com/RyanGlScott/lift-generics
bug-reports: https://github.com/RyanGlScott/lift-generics/issues
license: BSD3
license-file: LICENSE
author: Ryan Scott
maintainer: Ryan Scott <ryan.gl.scott@gmail.com>
stability: Experimental
copyright: (C) 2015 Ryan Scott
category: Language
build-type: Simple
tested-with: GHC == 7.0.4
, GHC == 7.2.2
, GHC == 7.4.2
, GHC == 7.6.3
, GHC == 7.8.4
, GHC == 7.10.3
, GHC == 8.0.1
extra-source-files: CHANGELOG.md, README.md
cabal-version: >=1.10
source-repository head
type: git
location: https://github.com/RyanGlScott/lift-generics
library
exposed-modules: Language.Haskell.TH.Lift.Generics
build-depends: base >= 4.3 && < 5
, generic-deriving >= 1.9 && < 2
, ghc-prim
, template-haskell >= 2.4 && < 2.13
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
test-suite spec
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules: LiftGenericsSpec
Types
Paths_lift_generics
build-depends: base >= 4.3 && < 5
, base-compat >= 0.8.2 && < 1
, generic-deriving >= 1.9 && < 2
, hspec >= 2 && < 3
, lift-generics == 0.1.1
, template-haskell >= 2.4 && < 2.13
hs-source-dirs: tests
default-language: Haskell2010
ghc-options: -Wall -threaded -rtsopts