newtype-generics

A typeclass and set of functions for working with newtypes http://github.com/sjakobi/newtype-generics

Version on this page:0.5.4
LTS Haskell 14.16:0.5.4
Stackage Nightly 2019-12-06:0.5.4@rev:1
Latest on Hackage:0.5.4@rev:1

See all snapshots newtype-generics appears in

BSD-3-Clause licensed by Darius Jahandarie, Conor McBride, João Cristóvão, Simon Jakobi
Maintained by Simon Jakobi

Module documentation for 0.5.4

This version can be pinned in stack with:newtype-generics-0.5.4@sha256:72299a0423a9b67286a67ce5dd44515604fffe3d27942fbc3bf4da1a872bd09b,2062

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.

Changes

Changelog for newtype-generics

0.5.4 – 2019-09-10

  • Add Newtype instance for Data.Monoid.Ap.
  • Support GHC-8.8.

0.5.3 – 2018-03-23

  • All code was moved to a new Control.Newtype.Generics module.
  • Control.Newtype re-exports Control.Newtype.Generics, but is deprecated and will be removed in the next major release.

0.5.2.2 – 2018-03-16

  • Adjust bounds for base and transformers

0.5.2.1 – 2018-02-16

  • Reupload due to README encoding issue

0.5.2 – 2018-02-16

Added

  • under2
  • over2

Other

  • Various documentation improvements

0.5.1

Added

  • Add more instances from base

0.5.0.1

Changes

  • Compatibility with GHC 8.2.1

0.5

Changes

  • Relax types of underF and overF to allow different input & output functors
Depends on 2 packages(full list with versions):
Used by 3 packages in lts-14.16(full list with versions):
comments powered byDisqus