Module

Data.Lens.Iso.Newtype

Package
profunctor-lenses
Repository
purerl/purescript-profunctor-lenses

#_Newtype Source

_Newtype :: forall b s a t. Newtype t a => Newtype s b => Iso t s a b

An Iso between a newtype and its inner type. Supports switching between different types that have instances of the Newtype type class. If you don't need to change types, you may have a better experience with type inference if you use simple _Newtype.