HORIZON HASKELLDocslts/ghc-10.0.x4d334ea2026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 4d334ea · 2026-10-12

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