category-extras-0.44.1: Various modules and constructs inspired by category theory.Source codeContentsIndex
Control.Morphism.Para
Portabilitynon-portable (rank-2 polymorphism)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Contents
Refold Sugar
Description
Synopsis
para :: Functor f => AlgW f (Para f) a -> Fix f -> a
g_para :: (Functor f, Comonad w) => Dist f w -> AlgW f (ParaT w f) a -> Fix f -> a
type Para f a = (Fix f, a)
type ParaT w f a = ReaderCT w (Fix f) a
distParaT :: (Functor f, Comonad w) => Dist f w -> Dist f (ParaT w f)
Refold Sugar
para :: Functor f => AlgW f (Para f) a -> Fix f -> aSource
g_para :: (Functor f, Comonad w) => Dist f w -> AlgW f (ParaT w f) a -> Fix f -> aSource
type Para f a = (Fix f, a)Source
type ParaT w f a = ReaderCT w (Fix f) aSource
distParaT :: (Functor f, Comonad w) => Dist f w -> Dist f (ParaT w f)Source
Produced by Haddock version 2.1.0