HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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