optics-core-0.2: Optics as an abstract interface: core definitions
Data.Either.Optics
Description
This module defines Prisms for the constructors of the Either datatype.
Prism
Either
_Left :: Prism (Either a b) (Either c b) a c Source #
A Prism that matches on the Left constructor of Either.
Left
_Right :: Prism (Either a b) (Either a c) b c Source #
A Prism that matches on the Right constructor of Either.
Right