comonads-fd-1.4.0: 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 -> w aSource

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

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

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

lowerGet :: (ComonadTrans t, ComonadStore s w) => t w a -> sSource