Module

Data.Lens.Prism.Either

Package
purescript-profunctor-lenses
Repository
purescript-contrib/purescript-profunctor-lenses

#_Left Source

_Left :: forall a b c. Prism (Either a c) (Either b c) a b

Prism for the Left constructor of Either.

#_Right Source

_Right :: forall a b c. Prism (Either c a) (Either c b) a b

Prism for the Right constructor of Either.

Re-exports from Data.Profunctor.Choice

#left Source

left :: forall p a b c. Choice p => p a b -> p (Either a c) (Either b c)

#right Source

right :: forall p a b c. Choice p => p b c -> p (Either a b) (Either a c)