A typeclass and set of functions for working with newtypes, with generics support.

Version on this page:0.5
LTS Haskell 21.22:0.6.2@rev:2
Stackage Nightly 2023-11-30:0.6.2@rev:2
Latest on Hackage:0.6.2@rev:2

See all snapshots newtype-generics appears in

BSD-3-Clause licensed by Darius Jahandarie, Conor McBride, João Cristóvão
Maintained by João Cristóvão
This version can be pinned in stack with:newtype-generics-0.5@sha256:4b0dd0a8074a1830523208294864d36d6d443edd298d8e2156111efe558b8c0d,1492

Module documentation for 0.5

Depends on 1 package(full list with versions):

Per Conor McBride, the Newtype typeclass represents the packing and unpacking of a newtype, and allows you to operatate 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.