Module

Data.Lens.Prism.Either

Package
profunctor-lenses
Repository
purerl/purescript-profunctor-lenses

#_Left Source

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

Prism for the Left constructor of Either.

#_Right Source

_Right :: forall c b a. 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 c b a. Choice p => p a b -> p (Either a c) (Either b c)

#right Source

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