kan-extensions-0.1.2: Kan extensions, the Yoneda lemma, and (co)density (co)monads

Portabilitynon-portable (GADTs, MPTCs)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Control.Comonad.Density

Description

The density comonad for a functor. aka the comonad generated by a functor The ''density'' term dates back to Dubuc''s 1974 thesis. The term ''monad genererated by a functor'' dates back to 1972 in Street''s ''Formal Theory of Monads''.

Synopsis

Documentation

data DensityT k a whereSource

Constructors

DensityT :: (k b -> a) -> k b -> DensityT k a 

liftDensityT :: Comonad w => w a -> DensityT w aSource

The natural isomorphism between a comonad w and the comonad generated by w (forwards).