HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduleoptics-core-0.4.2Haskell2010

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 Int

and

l :: Lens' S Int

then

coerceA @Int @MkInt l :: Lens' S MkInt
  • 4 values
  • Packageoptics-core-0.4.2
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCoerce.hs