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

Portabilityportable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Control.Comonad.Context.Class

Description

 

Documentation

class Comonad w => ComonadContext s w | w -> s whereSource

Methods

getC :: w a -> sSource

modifyC :: (s -> s) -> w a -> aSource

Instances

putC :: ComonadContext s w => s -> w a -> aSource

experiment :: (ComonadContext s w, Functor f) => f (s -> s) -> w a -> f aSource