transformers-0.5.0.2: Concrete functor and monad transformers

Copyright(c) Ross Paterson 2014
LicenseBSD-style (see the file LICENSE)
MaintainerR.Paterson@city.ac.uk
Stabilityexperimental
Portabilityportable
Safe HaskellTrustworthy
LanguageHaskell98

Data.Functor.Sum

Description

Sums, lifted to functors.

Synopsis

Documentation

data Sum f g a Source

Lifted sum of functors.

Constructors

InL (f a) 
InR (g a) 

Instances

(Functor f, Functor g) => Functor (Sum * f g) Source 
(Foldable f, Foldable g) => Foldable (Sum * f g) Source 
(Traversable f, Traversable g) => Traversable (Sum * f g) Source 
Generic1 (Sum * f g) Source 
(Show1 f, Show1 g) => Show1 (Sum * f g) Source 
(Read1 f, Read1 g) => Read1 (Sum * f g) Source 
(Ord1 f, Ord1 g) => Ord1 (Sum * f g) Source 
(Eq1 f, Eq1 g) => Eq1 (Sum * f g) Source 
(Eq1 f, Eq1 g, Eq a) => Eq (Sum * f g a) Source 
(Data (f a), Data (g a), Typeable (* -> *) f, Typeable (* -> *) g, Typeable * a) => Data (Sum * f g a) Source 
(Ord1 f, Ord1 g, Ord a) => Ord (Sum * f g a) Source 
(Read1 f, Read1 g, Read a) => Read (Sum * f g a) Source 
(Show1 f, Show1 g, Show a) => Show (Sum * f g a) Source 
Generic (Sum k f g a) Source 
type Rep1 (Sum * f g) Source 
type Rep (Sum k f g a) Source