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.Prepro

Description

See Maarten Fokkinga''s PhD Dissertation for cascade and prepro. g_prepro is an obvious generalization.

Synopsis

Documentation

prepro :: Functor f => (f c -> c) -> (f :~> f) -> FixF f -> cSource

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

Generalized prepromorphisms

cascade :: Bifunctor s Hask Hask Hask => (a -> a) -> Fix s a -> Fix s aSource

cascade f . map f = map f . cascade f