optics-core-0.3.0.1: Optics as an abstract interface: core definitions

Safe HaskellNone
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.