@hackage / newtype-generics

A typeclass and set of functions for working with newtypes

Latest0.6.3

About

Metadata

  • Last updated , by ErikDeCastroLopo
  • License BSD-3-Clause
  • Maintained by: Haskell Github Trust <https://github.com/haskell-github-trust>

  • Lottery factor: 2

Links

Installation

Tested Compilers

  1. 9.10.3
  2. 9.8.4
  3. 9.6.7
  4. 9.4.2
  5. 9.2.1
  6. 9.0.1
  7. 8.10.7

Readme

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.