one-liner: Constraint-based generics

[ bsd3, generics, library ] [ Propose Tags ]

Write short and concise generic instances of type classes.

There are two separate parts: Generics.OneLiner is for writing generic functions using GHC.Generics. The other modules show how to implement these same generic functions with a traversal-style generics type class, without the use of an intermediate generic representation type.

Versions [faq] 0, 0.1, 0.2, 0.2.1, 0.2.2, 0.3, 0.3.1, 0.4, 0.4.1, 0.5, 0.5.1, 0.5.2, 0.6, 0.7, 0.8, 0.8.1, 0.9, 0.9.1, 0.9.2, 1.0, 2.0
Dependencies base (==4.7.*), contravariant (==1.2.*), ghc-prim, transformers (>=0.3 && <0.5) [details]
License BSD-3-Clause
Author Sjoerd Visscher
Revised Revision 1 made by HerbertValerioRiedel at 2017-05-21T16:25:05Z
Category Generics
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by SjoerdVisscher at 2014-08-20T21:32:18Z
Distributions Arch:1.0, LTSHaskell:1.0, NixOS:2.0, Stackage:1.0
Downloads 14478 total (56 in the last 30 days)
Rating 2.5 (votes: 3) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




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'.

Maintainer's Corner

For package maintainers and hackage trustees