Copyright  (c) Ross Paterson 2010 

License  BSDstyle (see the file LICENSE) 
Maintainer  libraries@haskell.org 
Stability  experimental 
Portability  portable 
Safe Haskell  Trustworthy 
Language  Haskell2010 
Composition of functors.
Since: base4.9.0.0
Synopsis
 newtype Compose f g a = Compose {
 getCompose :: f (g a)
Documentation
newtype Compose f g a infixr 9 #
Righttoleft composition of functors. The composition of applicative functors is always applicative, but the composition of monads is not always a monad.
Compose infixr 9  

Instances
Functor f => Generic1 (Compose f g :: k > Type) #  Since: base4.9.0.0 
(Functor f, Functor g) => Functor (Compose f g) #  Since: base4.9.0.0 
(Applicative f, Applicative g) => Applicative (Compose f g) #  Since: base4.9.0.0 
Defined in Data.Functor.Compose  
(Foldable f, Foldable g) => Foldable (Compose f g) #  Since: base4.9.0.0 
Defined in Data.Functor.Compose fold :: Monoid m => Compose f g m > m # foldMap :: Monoid m => (a > m) > Compose f g a > m # foldMap' :: Monoid m => (a > m) > Compose f g a > m # foldr :: (a > b > b) > b > Compose f g a > b # foldr' :: (a > b > b) > b > Compose f g a > b # foldl :: (b > a > b) > b > Compose f g a > b # foldl' :: (b > a > b) > b > Compose f g a > b # foldr1 :: (a > a > a) > Compose f g a > a # foldl1 :: (a > a > a) > Compose f g a > a # toList :: Compose f g a > [a] # null :: Compose f g a > Bool # length :: Compose f g a > Int # elem :: Eq a => a > Compose f g a > Bool # maximum :: Ord a => Compose f g a > a # minimum :: Ord a => Compose f g a > a #  
(Traversable f, Traversable g) => Traversable (Compose f g) #  Since: base4.9.0.0 
Defined in Data.Functor.Compose  
(Alternative f, Applicative g) => Alternative (Compose f g) #  Since: base4.9.0.0 
(Show1 f, Show1 g) => Show1 (Compose f g) #  Since: base4.9.0.0 
(Read1 f, Read1 g) => Read1 (Compose f g) #  Since: base4.9.0.0 
Defined in Data.Functor.Compose liftReadsPrec :: (Int > ReadS a) > ReadS [a] > Int > ReadS (Compose f g a) # liftReadList :: (Int > ReadS a) > ReadS [a] > ReadS [Compose f g a] # liftReadPrec :: ReadPrec a > ReadPrec [a] > ReadPrec (Compose f g a) # liftReadListPrec :: ReadPrec a > ReadPrec [a] > ReadPrec [Compose f g a] #  
(Ord1 f, Ord1 g) => Ord1 (Compose f g) #  Since: base4.9.0.0 
Defined in Data.Functor.Compose  
(Eq1 f, Eq1 g) => Eq1 (Compose f g) #  Since: base4.9.0.0 
(Functor f, Contravariant g) => Contravariant (Compose f g) #  
(Eq1 f, Eq1 g, Eq a) => Eq (Compose f g a) #  Since: base4.9.0.0 
(Typeable a, Typeable f, Typeable g, Typeable k1, Typeable k2, Data (f (g a))) => Data (Compose f g a) #  Since: base4.9.0.0 
Defined in Data.Functor.Compose gfoldl :: (forall d b. Data d => c (d > b) > d > c b) > (forall g0. g0 > c g0) > Compose f g a > c (Compose f g a) # gunfold :: (forall b r. Data b => c (b > r) > c r) > (forall r. r > c r) > Constr > c (Compose f g a) # toConstr :: Compose f g a > Constr # dataTypeOf :: Compose f g a > DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) > Maybe (c (Compose f g a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) > Maybe (c (Compose f g a)) # gmapT :: (forall b. Data b => b > b) > Compose f g a > Compose f g a # gmapQl :: (r > r' > r) > r > (forall d. Data d => d > r') > Compose f g a > r # gmapQr :: forall r r'. (r' > r > r) > r > (forall d. Data d => d > r') > Compose f g a > r # gmapQ :: (forall d. Data d => d > u) > Compose f g a > [u] # gmapQi :: Int > (forall d. Data d => d > u) > Compose f g a > u # gmapM :: Monad m => (forall d. Data d => d > m d) > Compose f g a > m (Compose f g a) # gmapMp :: MonadPlus m => (forall d. Data d => d > m d) > Compose f g a > m (Compose f g a) # gmapMo :: MonadPlus m => (forall d. Data d => d > m d) > Compose f g a > m (Compose f g a) #  
(Ord1 f, Ord1 g, Ord a) => Ord (Compose f g a) #  Since: base4.9.0.0 
Defined in Data.Functor.Compose compare :: Compose f g a > Compose f g a > Ordering Source # (<) :: Compose f g a > Compose f g a > Bool Source # (<=) :: Compose f g a > Compose f g a > Bool Source # (>) :: Compose f g a > Compose f g a > Bool Source # (>=) :: Compose f g a > Compose f g a > Bool Source # max :: Compose f g a > Compose f g a > Compose f g a Source # min :: Compose f g a > Compose f g a > Compose f g a Source #  
(Read1 f, Read1 g, Read a) => Read (Compose f g a) #  Since: base4.9.0.0 
(Show1 f, Show1 g, Show a) => Show (Compose f g a) #  Since: base4.9.0.0 
Generic (Compose f g a) #  Since: base4.9.0.0 
type Rep1 (Compose f g :: k > Type) #  
Defined in Data.Functor.Compose  
type Rep (Compose f g a) #  
Defined in Data.Functor.Compose 