Copyright | (C) 2014-2015 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
- class ProfunctorFunctor t where
- class ProfunctorFunctor t => ProfunctorMonad t where
- class ProfunctorFunctor t => ProfunctorComonad t where
Documentation
class ProfunctorFunctor t where Source #
class ProfunctorFunctor t => ProfunctorMonad t where Source #
Laws:
promap
f.
proreturn
≡proreturn
.
fprojoin
.
proreturn
≡id
projoin
.
promap
proreturn
≡id
projoin
.
projoin
≡projoin
.
promap
projoin
proreturn :: Profunctor p => p :-> t p Source #
projoin :: Profunctor p => t (t p) :-> t p Source #
ProfunctorMonad Copastro Source # | |
ProfunctorMonad Pastro Source # | |
ProfunctorMonad CopastroSum Source # | |
ProfunctorMonad PastroSum Source # | |
ProfunctorMonad Environment Source # | |
ProfunctorMonad FreeTraversing Source # | |
ProfunctorMonad FreeMapping Source # | |
ProfunctorMonad Coyoneda Source # | |
ProfunctorMonad Yoneda Source # | |
(Functor f, Monad f) => ProfunctorMonad (Cayley f) Source # | Cayley transforms Monads in |
Category * p => ProfunctorMonad (Procompose p) Source # | |
ProfunctorMonad (Sum * * p) Source # | |
Monad f => ProfunctorMonad (Tannen * * * f) Source # | |
class ProfunctorFunctor t => ProfunctorComonad t where Source #
Laws:
proextract
.
promap
f ≡ f.
proextract
proextract
.
produplicate
≡id
promap
proextract
.
produplicate
≡id
produplicate
.
produplicate
≡promap
produplicate
.
produplicate
proextract :: Profunctor p => t p :-> p Source #
produplicate :: Profunctor p => t p :-> t (t p) Source #
ProfunctorComonad Cotambara Source # | |
ProfunctorComonad Tambara Source # | |
ProfunctorComonad CotambaraSum Source # | |
ProfunctorComonad TambaraSum Source # | |
ProfunctorComonad Closure Source # | |
ProfunctorComonad CofreeTraversing Source # | |
ProfunctorComonad CofreeMapping Source # | |
ProfunctorComonad Coyoneda Source # | |
ProfunctorComonad Yoneda Source # | |
Comonad f => ProfunctorComonad (Cayley f) Source # | Cayley transforms Comonads in |
Category * p => ProfunctorComonad (Rift p) Source # | |
Category * p => ProfunctorComonad (Ran p) Source # | |
ProfunctorComonad (Product * * p) Source # | |
Comonad f => ProfunctorComonad (Tannen * * * f) Source # | |