deriving-compat: Backports of GHC deriving extensions
Provides Template Haskell functions that mimic deriving extensions that were introduced or modified in recent versions of GHC. Currently, the following typeclasses/extensions are covered:
GeneralizedNewtypeDeriving(with GHC 8.2 or later)
DerivingVia(with GHC 8.2 or later)
See the Data.Deriving module for a full list of backported changes.
Note that some recent GHC typeclasses/extensions are not covered by this package:
DeriveGeneric, which was introducted in GHC 7.2 for deriving
Genericinstances, and modified in GHC 7.6 to allow derivation of
Generic(1)using Template Haskell.
DeriveLift, which was introduced in GHC 8.0 for deriving
Liftusing Template Haskell.
Bifunctortypeclass, which was introduced in GHC 7.10, as well as the
Bitraversabletypeclasses, which were introduced in GHC 8.2. Use
bifunctorsto derive these typeclasses using Template Haskell.
[Skip to Readme]
|Versions||0.1, 0.2, 0.2.1, 0.2.2, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.4, 0.4.1 (info)|
|Dependencies||base (>=4.3 && <5), containers (>=0.1 && <0.6), ghc-boot-th, ghc-prim, template-haskell (>=2.5 && <2.14), th-abstraction (>=0.2.2 && <1), transformers (>=0.2), transformers-compat (>=0.5) [details]|
|Copyright||(C) 2015-2017 Ryan Scott|
|Maintainer||Ryan Scott <email@example.com>|
|Revised||Revision 1 made by ryanglscott at Fri Feb 23 23:35:35 UTC 2018|
|Source repo||head: git clone https://github.com/haskell-compat/deriving-compat|
|Uploaded||by ryanglscott at Sun Feb 4 16:52:23 UTC 2018|
|Distributions||LTSHaskell:0.4.1, NixOS:0.4.1, Stackage:0.4.1, openSUSE:0.4.1|
|Downloads||7211 total (50 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
|Status||Docs available [build log]
Last success reported on 2018-02-04 [all 1 reports]
Hackage Matrix CI
Use base-4.9 or later.
Use template-haskell-22.214.171.124 or later.
Use a version of transformers or transformers-compat with a modern-style Data.Functor.Classes module. This flag cannot be used when building with transformers-0.4, since it comes with a different version of Data.Functor.Classes.
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
- deriving-compat-0.4.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