HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

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.

Synopsis
  • 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