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

Version on this page:[email protected]:2
LTS Haskell 16.3:[email protected]:1
Stackage Nightly 2020-06-29:[email protected]:1
Latest on Hackage:[email protected]:1

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

Module documentation for 0.4.1

This version can be pinned in stack with:[email protected]:75af95ea1c8ce723e2fa13e7132db32c2a4bc6282473bd9a4e58e1c4f2491bf4,1574

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.

Depends on 1 package(full list with versions):
Used by 2 packages in lts-3.22(full list with versions):