composite-lens-extra-0.1.0.0: Extra lens functions for composite.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Composite.Lens.Extra

Synopsis

Documentation

rlensS :: forall p p' s s' a b g rs rs'. (p ~ (s :-> a), p' ~ (s' :-> b), RecElem Rec (s :-> a) (s' :-> b) rs rs' (RIndex (s :-> a) rs), Functor g) => (a -> g b) -> Record rs -> g (Record rs') Source #

Type changing lens over a Record field.

Since: 0.0.1.0

rlensS' :: forall p p' s s' a b f g rs rs'. (p ~ (s :-> a), p' ~ (s' :-> b), RecElem Rec (s :-> a) (s' :-> b) rs rs' (RIndex (s :-> a) rs), Functor f, Functor g) => (f a -> g (f b)) -> Rec f rs -> g (Rec f rs') Source #

Type changing lens over a `Rec f` (Covariant).

Since: 0.0.1.0

rlensS'' :: forall p p' s s' a b f g rs rs'. (p ~ (s :-> a), p' ~ (s' :-> b), RecElem Rec (s :-> a) (s' :-> b) rs rs' (RIndex (s :-> a) rs), Contravariant f, Functor g) => (f a -> g (f b)) -> Rec f rs -> g (Rec f rs') Source #

Type changing lens over a `Rec f` (Contravariant).

Since: 0.0.1.0