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

Portabilitynon-portable (rank-2 polymorphism)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Control.Comonad.HigherOrder

Description

extending Neil Ghani and Patrician Johann's HFunctor to higher order comonads

Documentation

class HFunctor f whereSource

Methods

ffmap :: Functor g => (a -> b) -> f g a -> f g bSource

hfmap :: (g :~> h) -> f g :~> f hSource

class HFunctor w => HCopointed w whereSource

Methods

hextract :: Functor f => w f a -> f aSource

class HCopointed w => HComonad w whereSource

Methods

hextend :: (Functor f, Functor g) => (w f :~> g) -> w f :~> w gSource

hduplicate :: (HComonad w, Functor (w g), Functor g) => w g :~> w (w g)Source