comonad-4.2.4: Comonads

Copyright(C) 2008-2012 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable (fundeps, MPTCs)
Safe HaskellTrustworthy
LanguageHaskell2010

Control.Comonad.Store.Class

Description

 

Documentation

class Comonad w => ComonadStore s w | w -> s where Source

Minimal complete definition

pos, peek

Methods

pos :: w a -> s Source

peek :: s -> w a -> a Source

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

seek :: s -> w a -> w a Source

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

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

Instances

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

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