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 |
Synopsis
- class ProfunctorFunctor (t :: (Type -> Type -> Type) -> k -> k1 -> Type) where
- class ProfunctorFunctor t => ProfunctorMonad (t :: (Type -> Type -> Type) -> Type -> Type -> Type) where
- class ProfunctorFunctor t => ProfunctorComonad (t :: (Type -> Type -> Type) -> Type -> Type -> Type) where
- proextract :: forall (p :: Type -> Type -> Type). Profunctor p => t p :-> p
- produplicate :: forall (p :: Type -> Type -> Type). Profunctor p => t p :-> t (t p)
Documentation
class ProfunctorFunctor (t :: (Type -> Type -> Type) -> k -> k1 -> Type) where Source #
ProfunctorFunctor
has a polymorphic kind since 5.6
.
promap :: forall (p :: Type -> Type -> Type) (q :: Type -> Type -> Type). Profunctor p => (p :-> q) -> t p :-> t q Source #
Instances
class ProfunctorFunctor t => ProfunctorMonad (t :: (Type -> Type -> Type) -> Type -> Type -> Type) where Source #
Laws:
promap
f.
proreturn
≡proreturn
.
fprojoin
.
proreturn
≡id
projoin
.
promap
proreturn
≡id
projoin
.
projoin
≡projoin
.
promap
projoin
proreturn :: forall (p :: Type -> Type -> Type). Profunctor p => p :-> t p Source #
projoin :: forall (p :: Type -> Type -> Type). Profunctor p => t (t p) :-> t p Source #
Instances
class ProfunctorFunctor t => ProfunctorComonad (t :: (Type -> Type -> Type) -> Type -> Type -> Type) where Source #
Laws:
proextract
.
promap
f ≡ f.
proextract
proextract
.
produplicate
≡id
promap
proextract
.
produplicate
≡id
produplicate
.
produplicate
≡promap
produplicate
.
produplicate
proextract :: forall (p :: Type -> Type -> Type). Profunctor p => t p :-> p Source #
produplicate :: forall (p :: Type -> Type -> Type). Profunctor p => t p :-> t (t p) Source #