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

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

Control.Morphism.Cata

Description

 

Documentation

cata :: Functor f => Algebra f a -> FixF f -> aSource

g_cata :: (Functor f, Comonad w) => Dist f w -> GAlgebra f w a -> FixF f -> aSource

bicata :: Bifunctor f Hask Hask Hask => Algebra (f b) a -> Fix f b -> aSource

g_bicata :: (Bifunctor f Hask Hask Hask, Comonad w) => Dist (f b) w -> GAlgebra (f b) w a -> Fix f b -> aSource

hcata :: HFunctor f => HAlgebra f a -> FixH f :~> aSource

kcata :: HFunctor f => InterpreterT f g h -> FixH f :~> Ran g hSource

runkcata :: HFunctor f => InterpreterT f g h -> FixH f a -> (a -> g b) -> h bSource