category-extras-0.44.1: Various modules and constructs inspired by category theory.

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

Control.Comonad.Context

Description

The state-in-context comonad and comonad transformer

Documentation

data Context s a Source

Constructors

Context (s -> a) s 

newtype ContextT s w a Source

Constructors

ContextT 

Fields

runContextT :: (w s -> a, w s)
 

Instances