emgm-0.4: Extensible and Modular Generics for the Masses

Portabilitynon-portable
Stabilityexperimental
Maintainergenerics@haskell.org

Generics.EMGM.Data.Either

Description

Summary: Generic representation and instances for Either.

Synopsis

Documentation

type EitherS a b = a :+: bSource

conLeft :: ConDescrSource

Constructor description for Left.

conRight :: ConDescrSource

Constructor description for Right.

repEither :: (Generic g, Rep g a, Rep g b) => g (Either a b)Source

Representation of Either for rep.

frepEither :: Generic g => g a -> g b -> g (Either a b)Source

Representation of Either for frep.

frep2Either :: Generic2 g => g a1 a2 -> g b1 b2 -> g (Either a1 b1) (Either a2 b2)Source

Representation of Either for frep2.

frep3Either :: Generic3 g => g a1 a2 a3 -> g b1 b2 b3 -> g (Either a1 b1) (Either a2 b2) (Either a3 b3)Source

Representation of Either for frep3.

bifrep2Either :: Generic2 g => g a1 a2 -> g b1 b2 -> g (Either a1 b1) (Either a2 b2)Source

Representation of Either for bifrep2.