one-liner: Constraint-based generics

[ bsd3, generics, library ] [ Propose Tags ] [ Report a vulnerability ]

Write short and concise generic instances of type classes. one-liner is particularly useful for writing default implementations of type class methods.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 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, 2.1, 2.1.1
Change log CHANGELOG
Dependencies base (>=4.9 && <5), bifunctors (>=5.4 && <6), contravariant (>=1.4 && <1.6), ghc-prim (>=0.5 && <1), linear-base (>=0.1 && <1), profunctors (>=5.2 && <6), tagged (>=0.8 && <0.9) [details]
Tested with ghc ==9.6.7, ghc ==9.8.4, ghc ==9.10.3, ghc ==9.12.2, ghc ==9.14.1
License BSD-3-Clause
Author Sjoerd Visscher, Xia Li-yao
Maintainer sjoerd@w3future.com
Category Generics
Home page https://github.com/sjoerdvisscher/one-liner
Bug tracker https://github.com/sjoerdvisscher/one-liner/issues
Source repo head: git clone https://github.com/sjoerdvisscher/one-liner
Uploaded by SjoerdVisscher at 2026-01-06T16:00:46Z
Distributions Arch:2.1, LTSHaskell:2.1, NixOS:2.1, Stackage:2.1.1
Reverse Dependencies 4 direct, 3 indirect [details]
Downloads 18557 total (74 in the last 30 days)
Rating 2.5 (votes: 3) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-01-06 [all 1 reports]