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

Portabilitynon-portable (functional-dependencies)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Control.Functor.Categorical

Description

A more categorical definition of Functor than endofunctors in the category Hask

Documentation

class CFunctor m ~> ~> => CPointed m (~>) whereSource

Methods

creturn :: a ~> m aSource

class CFunctor w ~> ~> => CCopointed w (~>) whereSource

Methods

cextract :: w a ~> aSource

class CFunctor m ~> ~> => CBind m (~>) whereSource

Methods

cjoin :: m (m a) ~> m aSource

cbind :: (a ~> m b) -> m a ~> m bSource

class CFunctor w ~> ~> => CExtend w (~>) whereSource

Methods

cduplicate :: w a ~> w (w a)Source

cextend :: (w a ~> b) -> w a ~> w bSource

class (CFunctor f ~> ~>, CFunctor g ~> ~>) => CDistributes f g (~>) whereSource

Methods

cdist :: f (g a) ~> g (f a)Source

class (CPointed m ~>, CBind m ~>) => CMonad m (~>) Source

Instances

(CPointed m ~>, CBind m ~>) => CMonad m ~> 

class (CCopointed m ~>, CExtend m ~>) => CComonad m (~>) Source

Instances

(CCopointed m ~>, CExtend m ~>) => CComonad m ~>