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

Portabilitynon-portable (kind annotations, rank-2 types)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Control.Functor.HigherOrder.Composition

Description

Composition of higher order functors

Documentation

newtype CompH f g a b Source

Constructors

CompH 

Fields

runCompH :: f (g a) b
 

Instances

class HComposition c whereSource

Methods

hcompose :: f (g x) a -> c f g x aSource

hdecompose :: c f g x a -> f (g x) aSource

Instances

hassociateComp :: (HFunctor f, HComposition c) => c (c f g) h a b -> c f (c g h) a bSource

hcoassociateComp :: (HFunctor f, HComposition c) => c f (c g h) a b -> c (c f g) h a bSource