Copyright | (c) Ross Paterson 2010 |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | [email protected] |
Stability | experimental |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Composition of functors.
Since: 4.9.0.0
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 | |
Fields
|
Functor f => Generic1 k (Compose * k f g) | |
(Functor f, Functor g) => Functor (Compose * * f g) | Since: 4.9.0.0 |
(Applicative f, Applicative g) => Applicative (Compose * * f g) | Since: 4.9.0.0 |
(Foldable f, Foldable g) => Foldable (Compose * * f g) | Since: 4.9.0.0 |
(Traversable f, Traversable g) => Traversable (Compose * * f g) | Since: 4.9.0.0 |
(Alternative f, Applicative g) => Alternative (Compose * * f g) | Since: 4.9.0.0 |
(Show1 f, Show1 g) => Show1 (Compose * * f g) | Since: 4.9.0.0 |
(Read1 f, Read1 g) => Read1 (Compose * * f g) | Since: 4.9.0.0 |
(Ord1 f, Ord1 g) => Ord1 (Compose * * f g) | Since: 4.9.0.0 |
(Eq1 f, Eq1 g) => Eq1 (Compose * * f g) | Since: 4.9.0.0 |
(Eq1 f, Eq1 g, Eq a) => Eq (Compose * * f g a) | Since: 4.9.0.0 |
(Data (f (g a)), Typeable * k2, Typeable * k1, Typeable (k2 -> k1) g, Typeable (k1 -> *) f, Typeable k2 a) => Data (Compose k1 k2 f g a) | |
(Ord1 f, Ord1 g, Ord a) => Ord (Compose * * f g a) | Since: 4.9.0.0 |
(Read1 f, Read1 g, Read a) => Read (Compose * * f g a) | Since: 4.9.0.0 |
(Show1 f, Show1 g, Show a) => Show (Compose * * f g a) | Since: 4.9.0.0 |
Generic (Compose k1 k2 f g a) | |
type Rep1 k (Compose * k f g) | |
type Rep (Compose k1 k2 f g a) | |
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.2.1/docs/html/libraries/base-4.10.0.0/Data-Functor-Compose.html