| 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 |
Data.Profunctor.Monad
Description
Synopsis
- class ProfunctorFunctor t where
- class ProfunctorFunctor t => ProfunctorMonad t where
- class ProfunctorFunctor t => ProfunctorComonad t where
Documentation
class ProfunctorFunctor t where Source #
Minimal complete definition
Methods
Instances
class ProfunctorFunctor t => ProfunctorMonad t where Source #
Laws:
promapf.proreturn≡proreturn.fprojoin.proreturn≡idprojoin.promapproreturn≡idprojoin.projoin≡projoin.promapprojoin
Methods
proreturn :: Profunctor p => p :-> t p Source #
projoin :: Profunctor p => t (t p) :-> t p Source #
Instances
class ProfunctorFunctor t => ProfunctorComonad t where Source #
Laws:
proextract.promapf ≡ f.proextractproextract.produplicate≡idpromapproextract.produplicate≡idproduplicate.produplicate≡promapproduplicate.produplicate
Minimal complete definition
Methods
proextract :: Profunctor p => t p :-> p Source #
produplicate :: Profunctor p => t p :-> t (t p) Source #