A prism to the nth constructor of a generic representation.
Methods
gInjection :: proxy n -> Prism (s x) (t x) a b
Instances5GInjection
GInjectionSum (IsLT (CmpNat n (GCount f))) n f g f' g' a b => GInjection n (f :+: g) (f' :+: g') a bDefined in either-n-0.1.0.0 · Data.Lens.Injection.Generic.InternalGInjection n s t a b => GInjection n (M1 D m s) (M1 D m' t) a bDefined in either-n-0.1.0.0 · Data.Lens.Injection.Generic.Internal(AssertZero n, Generic a, Generic b, Rep a ~ D1 da (C1 ca p), Rep b ~ D1 db (C1 cb q), GProduct (f :*: g) p, GProduct (f' :*: g') q) => GInjection n (M1 C m (f :*: g)) (M1 C m' (f' :*: g')) a bDefined in either-n-0.1.0.0 · Data.Lens.Injection.Generic.InternalA constructor with more than one field.
(AssertZero n, a ~ (), b ~ ()) => GInjection n (M1 C m U1) (M1 C m' U1) a bDefined in either-n-0.1.0.0 · Data.Lens.Injection.Generic.InternalA constructor with no fields.
(AssertZero n, x ~ a, y ~ b) => GInjection n (M1 C m (M1 S ms (K1 i x))) (M1 C m' (M1 S ms' (K1 i' y))) a bDefined in either-n-0.1.0.0 · Data.Lens.Injection.Generic.InternalA constructor with one field.