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.Morphism.Zygo

Contents

Description

 

Synopsis

Documentation

type Zygo b a = (b, a)Source

zygo :: Functor f => Alg f b -> AlgW f (Zygo b) a -> Fix f -> aSource

g_zygo :: (Functor f, Comonad w) => AlgW f w b -> Dist f w -> AlgW f (ReaderCT w b) a -> Fix f -> aSource

Distributive Law Combinators

distZygo :: Functor f => Alg f b -> Dist f (Zygo b)Source

distZygoT :: (Functor f, Comonad w) => AlgW f w b -> Dist f w -> Dist f (ReaderCT w b)Source