Module

Data.Lens.Prism.Either

Package
purescript-profunctor-lenses
Repository
purescript-contrib/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

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

#right

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