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

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

Control.Functor.HigherOrder

Description

Neil Ghani and Particia Johann''s higher order functors from http://crab.rutgers.edu/~pjohann/tlca07-rev.pdf

Documentation

class HFunctor f whereSource

Methods

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

hfmap :: Natural g h -> Natural (f g) (f h)Source

Instances

(HFunctor f, HFunctor g) => HFunctor (CompH f g) 

class HFunctor m => HPointed m whereSource

Methods

hreturn :: Functor f => Natural f (m f)Source

class HFunctor w => HCopointed w whereSource

Methods

hextract :: Functor f => Natural (w f) fSource

type AlgH f g = Natural (f g) gSource

type CoAlgH f g = Natural g (f g)Source

newtype FixH f a Source

Constructors

InH 

Fields

outH :: f (FixH f) a
 

newtype LowerH h f a Source

Constructors

LowerH 

Fields

liftH :: h f a
 

Instances

(HFunctor h, Functor f) => Functor (LowerH h f) 
(HCopointed h, Copointed f) => Copointed (LowerH h f) 
(HPointed h, Pointed f) => Pointed (LowerH h f)