transformers- Concrete functor and monad transformers

Copyright(c) Ross Paterson 2010
LicenseBSD-style (see the file LICENSE)
Safe HaskellTrustworthy



Composition of functors.



newtype Compose f g a infixr 9 Source

Right-to-left composition of functors. The composition of applicative functors is always applicative, but the composition of monads is not always a monad.


Compose infixr 9 


getCompose :: f (g a)


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