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

Portabilityportable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Control.Monad.Parameterized

Description

 

Documentation

class Bifunctor f whereSource

Methods

bimap :: (a -> c) -> (b -> d) -> f a b -> f c dSource

first :: (a -> c) -> f a b -> f c bSource

second :: (b -> d) -> f a b -> f a dSource

class Bifunctor f => PPointed f whereSource

Methods

preturn :: a -> f a cSource

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

(>>*=) :: 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