newtype-generics

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

Version on this page:0.4
LTS Haskell 22.41:0.6.2@rev:4
Stackage Nightly 2024-11-12:0.6.2@rev:4
Latest on Hackage:0.6.2@rev:4

See all snapshots newtype-generics appears in

BSD-3-Clause licensed by Darius Jahandarie, Conor McBride, João Cristovao
Maintained by João Cristóvão
This version can be pinned in stack with:newtype-generics-0.4@sha256:edc19e782f20645ba70e7013cb61af232e98216ae5838c029d45c8a94afa971b,1520

Module documentation for 0.4

Depends on 1 package(full list with versions):
Used by 3 packages in lts-6.19(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.