comonad-4.2: Comonads

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

Control.Comonad.Store.Class

Description

 

Documentation

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

Methods

pos :: w a -> sSource

peek :: s -> w a -> aSource

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

seek :: s -> w a -> w aSource

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

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

Instances

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

lowerPeek :: (ComonadTrans t, ComonadStore s w) => s -> t w a -> aSource