optics-core-0.4.1.1: Optics as an abstract interface: core definitions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Either.Optics

Description

This module defines Prisms for the constructors of the Either datatype.

Synopsis

Documentation

_Left :: Prism (Either a b) (Either c b) a c Source #

A Prism that matches on the Left constructor of Either.

_Right :: Prism (Either a b) (Either a c) b c Source #

A Prism that matches on the Right constructor of Either.