newtype-generics: A typeclass and set of functions for working with newtypes

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

Per Conor McBride, the Newtype typeclass represents the packing and unpacking of a newtype, and allows you to operate under that newtype with functions such as ala. Generics support was added in version 0.4, making this package a full replacement for the original newtype package, and a better alternative to newtype-th.

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.4, 0.4.0.1, 0.4.1, 0.4.2, 0.5, 0.5.0.1, 0.5.1, 0.5.2, 0.5.2.1, 0.5.2.2, 0.5.3, 0.5.4, 0.6, 0.6.1, 0.6.2, 0.6.3
Change log CHANGELOG.md
Dependencies base (>=4.9 && <4.23) [details]
Tested with ghc ==9.14.1, ghc ==9.12.4, ghc ==9.10.3, ghc ==9.8.4, ghc ==9.6.7, ghc ==9.4.2, ghc ==9.2.1, ghc ==9.0.1, ghc ==8.10.7
License BSD-3-Clause
Author Darius Jahandarie, Conor McBride, João Cristóvão, Simon Jakobi
Maintainer Haskell Github Trust <https://github.com/haskell-github-trust>
Uploaded by ErikDeCastroLopo at 2026-05-30T05:34:46Z
Category Control
Home page http://github.com/haskell-github-trust/newtype-generics
Source repo head: git clone https://github.com/sjakobi/newtype-generics
Distributions Arch:0.6.2, Fedora:0.6.2, LTSHaskell:0.6.3, Stackage:0.6.3
Reverse Dependencies 17 direct, 9256 indirect [details]
Downloads 40893 total (64 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-05-30 [all 1 reports]