category-extras-0.53.5: Various modules and constructs inspired by category theory

Portabilityportable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Control.Monad.Parameterized

Description

 

Documentation

class (PFunctor p r t, QFunctor p s t) => Bifunctor p r s t | p r -> s t, p s -> r t, p t -> r s whereSource

Methods

bimap :: r a b -> s c d -> t (p a c) (p b d)Source

class PFunctor f Hask Hask => PPointed f whereSource

Methods

preturn :: a -> f a cSource

Instances

class PPointed f => PApplicative f whereSource

Methods

pap :: f (a -> b) c -> f a c -> f b cSource

class PApplicative f => PMonad f whereSource

Methods

pbind :: (a -> f b c) -> f a c -> f b cSource

pjoin :: f (f a b) b -> f a bSource

Instances

(>>*=) :: PMonad f => f a c -> (a -> f b c) -> f b cSource

(=*<<) :: PMonad f => (a -> f b c) -> f a c -> f b cSource

(>>*) :: PMonad f => f a c -> f b c -> f b cSource

papPMonad :: PMonad f => f (a -> b) c -> f a c -> f b cSource