haskpy.types.either

Values with two possibilities

Either(match)

Left(x)

Right(x)

either(f, g, e)

(a -> c) -> (b -> c) -> Either a b -> c

is_left(m)

is_right(m)

from_left(x, e)

from_right(x, e)

left(p)

(a -> b) -> s -> t, or more generally, PrismP a b s t

right(p)

(a -> b) -> s -> t, or more generally, PrismP a b s t