category-extras-0.53.6: Various modules and constructs inspired by category theoryContentsIndex
Control.Comonad.Context
Portabilitynon-portable (MPTCs)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Description
The Context Comonad Transformer is related to the left Kan Extension Lan of a comonad along itself, except the type of the context is fixed, and not existentially quantified.
Documentation
module Control.Comonad
class Comonad w => ComonadContext s w | w -> s where
Methods
getC :: w a -> s
modifyC :: (s -> s) -> w a -> a
show/hide Instances
putC :: ComonadContext s w => s -> w a -> a
experiment :: (ComonadContext s w, Functor f) => f (s -> s) -> w a -> f a
data Context s a
Constructors
Context (s -> a) s
show/hide Instances
runContext :: (Context s s -> Context s b) -> s -> (b, s)
newtype ContextT s w a
Constructors
ContextT
runContextT :: (w s -> a, w s)
show/hide Instances
Produced by Haddock version 2.1.0