profunctors-4.4.1: Profunctors

Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Profunctor.Monad

Documentation

class ProfunctorFunctor t => ProfunctorMonad t where

Methods

proreturn :: Profunctor p => p :-> t p

projoin :: Profunctor p => t (t p) :-> t p

Instances

ProfunctorMonad Environment 
ProfunctorMonad Copastro 
ProfunctorMonad Pastro 
(Functor f, Monad f) => ProfunctorMonad (Cayley f)

Cayley transforms Monads in Hask into monads on Prof

Category * p => ProfunctorMonad (Procompose p) 

class ProfunctorFunctor t => ProfunctorComonad t where

Methods

proextract :: Profunctor p => t p :-> p

produplicate :: Profunctor p => t p :-> t (t p)

Instances