Copyright | (C) 2008-2012 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable (fundeps, MPTCs) |
Safe Haskell | Safe |
Language | Haskell2010 |
Documentation
class Comonad w => ComonadStore s w | w -> s where 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
(ComonadStore s w, Monoid m) => ComonadStore s (TracedT m w) Source # | |
Defined in Control.Comonad.Store.Class pos :: TracedT m w a -> s Source # peek :: s -> TracedT m w a -> a Source # peeks :: (s -> s) -> TracedT m w a -> a Source # seek :: s -> TracedT m w a -> TracedT m w a Source # seeks :: (s -> s) -> TracedT m w a -> TracedT m w a Source # experiment :: Functor f => (s -> f s) -> TracedT m w a -> f a Source # | |
ComonadStore s w => ComonadStore s (EnvT e w) Source # | |
Defined in Control.Comonad.Store.Class | |
ComonadStore s w => ComonadStore s (IdentityT w) Source # | |
Defined in Control.Comonad.Store.Class pos :: IdentityT w a -> s Source # peek :: s -> IdentityT w a -> a Source # peeks :: (s -> s) -> IdentityT w a -> a Source # seek :: s -> IdentityT w a -> IdentityT w a Source # seeks :: (s -> s) -> IdentityT w a -> IdentityT w a Source # experiment :: Functor f => (s -> f s) -> IdentityT w a -> f a Source # | |
Comonad w => ComonadStore s (StoreT s w) Source # | |
Defined in Control.Comonad.Store.Class |
lowerPos :: (ComonadTrans t, ComonadStore s w) => t w a -> s Source #
lowerPeek :: (ComonadTrans t, ComonadStore s w) => s -> t w a -> a Source #