newtype

A typeclass and set of functions for working with newtypes.

Version on this page:0.2.1.0
LTS Haskell 13.23:0.2.1.0
Stackage Nightly 2019-05-27:0.2.1.0
Latest on Hackage:0.2.1.0

See all snapshots newtype appears in

BSD-3-Clause licensed by Herbert Valerio Riedel, Darius Jahandarie, Conor McBride
Maintained by hvr@gnu.org

Module documentation for 0.2.1.0

There are no documented modules for this package.

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. See Control.Newtype for documentation and examples.

Changes

See also https://pvp.haskell.org/faq

0.2.1.0 (minor)

  • Added Newtype instances for
    • Data.Fixed.Fixed
    • Data.Functor.Compose.Compose
    • Data.Functor.Identity.Identity
    • Data.Monoid.Alt
    • Data.Monoid.Ap
    • Data.Monoid.Dual
    • Data.Ord.Down
  • Declare Control.Newtype explicitly as Trustworthy under SafeHaskell
comments powered byDisqus