Copyright | (c) Edward Kmett 2010 |
---|---|
License | BSD3 |
Maintainer | ekmett@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
Composition of contravariant functors.
- newtype Compose f g a = Compose {
- getCompose :: f (g a)
- newtype ComposeFC f g a = ComposeFC {
- getComposeFC :: f (g a)
- newtype ComposeCF f g a = ComposeCF {
- getComposeCF :: f (g a)
Documentation
Composition of two contravariant functors
Compose | |
|
(Contravariant f, Contravariant g) => Functor (Compose f g) Source | |
newtype ComposeFC f g a Source
Composition of covariant and contravariant functors
ComposeFC | |
|
(Functor f, Functor g) => Functor (ComposeFC f g) Source | |
(Functor f, Contravariant g) => Contravariant (ComposeFC f g) Source | |
(Applicative f, Decidable g) => Decidable (ComposeFC f g) Source | |
(Applicative f, Divisible g) => Divisible (ComposeFC f g) Source | |
newtype ComposeCF f g a Source
Composition of contravariant and covariant functors
ComposeCF | |
|
(Functor f, Functor g) => Functor (ComposeCF f g) Source | |
(Contravariant f, Functor g) => Contravariant (ComposeCF f g) Source | |
(Divisible f, Applicative g) => Divisible (ComposeCF f g) Source | |