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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduleeither-n-0.1.0.0Haskell2010

Data.Lens.Injection.Generic.Internal

The generic machinery behind injection.

This module is internal: its contents may change in any release, without a major version bump. Use Data.Lens.Injection.Generic instead.

  • 3 classes
  • Packageeither-n-0.1.0.0
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInternal.hs
classclass GInjection (n :: Nat) (s :: Type -> Type) (t :: Type -> Type) a b where
#

A prism to the nth constructor of a generic representation.

Methods

Instances5GInjection
classclass GInjectionSum (left :: Bool) (n :: Nat) (f :: Type -> Type) (g :: Type -> Type) (f' :: Type -> Type) (g' :: Type -> Type) a b where
#

Descend into the left ('True) or right ('False) of a generic sum. The other side of the sum is unchanged.

Methods

Instances2GInjectionSum