category-extras-0.53.6: Various modules and constructs inspired by category theoryContentsIndex
Control.Functor.HigherOrder
Portabilitynon-portable (rank-2 polymorphism)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Description
Neil Ghani and Particia Johann''s higher order functors from http://crab.rutgers.edu/~pjohann/tlca07-rev.pdf
Documentation
class HFunctor f where
Methods
ffmap :: Functor g => (a -> b) -> f g a -> f g b
hfmap :: (g :~> h) -> f g :~> f h
show/hide Instances
HFunctor CoYoneda
HFunctor Yoneda
Bifunctor p Hask Hask Hask => HFunctor (Ap p)
Functor f => HFunctor (CompF f)
Functor f => HFunctor (ACompF f)
Functor g => HFunctor (Lan g)
HFunctor (Ran g)
(HFunctor f, HFunctor g) => HFunctor (CompH f g)
class HFunctor m => HPointed m where
Methods
hreturn :: Functor f => f a -> m f a
show/hide Instances
class HFunctor w => HCopointed w where
Methods
hextract :: Functor f => w f a -> f a
show/hide Instances
type HAlgebra f g = f g :~> g
type HCoalgebra f g = g :~> f g
newtype FixH f a
Constructors
InH
outH :: f (FixH f) a
newtype LowerH h f a
Constructors
LowerH
liftH :: h f a
show/hide Instances
(HFunctor h, Functor f) => Functor (LowerH h f)
(HPointed h, Pointed f) => Pointed (LowerH h f)
(HCopointed h, Copointed f) => Copointed (LowerH h f)
Produced by Haddock version 2.1.0