Portability | Rank2Types |
---|---|
Stability | provisional |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | Trustworthy |
- newtype Tambara p a b = Tambara {
- runTambara :: forall c. p (a, c) (b, c)
- tambara :: Strong p => (p :-> q) -> p :-> Tambara q
- untambara :: Profunctor q => (p :-> Tambara q) -> p :-> q
- data Pastro p a b where
- newtype Cotambara p a b = Cotambara {
- runCotambara :: forall c. p (Either a c) (Either b c)
- cotambara :: Choice p => (p :-> q) -> p :-> Cotambara q
- uncotambara :: Profunctor q => (p :-> Cotambara q) -> p :-> q
- data Copastro p a b where
Documentation
Tambara | |
|
ProfunctorComonad Tambara | |
ProfunctorFunctor Tambara | |
ProfunctorAdjunction Pastro Tambara | |
Arrow p => Arrow (Tambara p) | |
ArrowZero p => ArrowZero (Tambara p) | |
ArrowPlus p => ArrowPlus (Tambara p) | |
ArrowChoice p => ArrowChoice (Tambara p) | |
ArrowApply p => ArrowApply (Tambara p) | |
ArrowLoop p => ArrowLoop (Tambara p) | |
Category p => Category (Tambara p) | |
Profunctor p => Profunctor (Tambara p) | |
Choice p => Choice (Tambara p) | |
Profunctor p => Strong (Tambara p) | |
Profunctor p => Functor (Tambara p a) | |
(Profunctor p, Arrow p) => Applicative (Tambara p a) | |
(Profunctor p, ArrowPlus p) => Alternative (Tambara p a) | |
(Profunctor p, ArrowPlus p) => Monoid (Tambara p a b) |
Pastro -| Tambara
newtype Cotambara p a b Source
Cotambara is freely adjoins respect for cocartesian structure to a profunctor
Cotambara | |
|
ProfunctorComonad Cotambara | |
ProfunctorFunctor Cotambara | |
ProfunctorAdjunction Copastro Cotambara | |
Category p => Category (Cotambara p) | |
Profunctor p => Profunctor (Cotambara p) | |
Profunctor p => Choice (Cotambara p) | |
Profunctor p => Functor (Cotambara p a) |
uncotambara :: Profunctor q => (p :-> Cotambara q) -> p :-> qSource