comonads-fd-0.1.1: Comonad transformers using functional dependencies.

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

Control.Comonad.Store.Class

Description

 

Documentation

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

Methods

get :: w a -> sSource

put :: s -> w a -> aSource

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

Instances

gets :: ComonadStore s w => (s -> t) -> w a -> tSource

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