@hackage one-liner0.4
Constraint-based generics
Installation
Dependencies (4)
- base >=4.7 && <4.8
- contravariant >=1.2 && <1.3
- ghc-prim
- transformers >=0.3 && <0.5 Show all…
Dependents (5)
@hackage/charter, @hackage/generic-data, @hackage/acme-everything, @hackage/unfoldable, @hackage/one-liner-instances
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.