Data.Either.Optics
Description
This module defines Prism s 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