Lift coerce to the s parameter of an optic.
Moduleoptics-core-0.4.1.1Haskell2010
Optics.Coerce
This module defines operations to coerce the type parameters of optics to a representationally equal type. For example, if we have
newtype MkInt = MkInt Intand
l :: Lens' S Intthen
coerceA @Int @MkInt l :: Lens' S MkInt- 4 values
- Packageoptics-core-0.4.1.1
- Exports4
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceCoerce.hs
Lift coerce to the t parameter of an optic.
Lift coerce to the a parameter of an optic.
Lift coerce to the b parameter of an optic.