Copyright | (c) Sirui Lu 2023 |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | siruilu@cs.washington.edu |
Stability | Experimental |
Portability | GHC only |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Synopsis
- mrgGet :: (MonadState s m, UnionLike m, Mergeable s) => m s
- mrgPut :: (MonadState s m, UnionLike m) => s -> m ()
- mrgState :: (MonadState s m, UnionLike m, Mergeable s, Mergeable a) => (s -> (a, s)) -> m a
- mrgModify :: (MonadState s m, UnionLike m, Mergeable s) => (s -> s) -> m ()
- mrgModify' :: (MonadState s m, UnionLike m, Mergeable s) => (s -> s) -> m ()
- mrgGets :: (MonadState s m, UnionLike m, Mergeable s, Mergeable a) => (s -> a) -> m a
mrg* variants for operations in Control.Monad.State.Class
mrgGet :: (MonadState s m, UnionLike m, Mergeable s) => m s Source #
get
with MergingStrategy
knowledge
propagation.
mrgPut :: (MonadState s m, UnionLike m) => s -> m () Source #
put
with MergingStrategy
knowledge
propagation.
mrgState :: (MonadState s m, UnionLike m, Mergeable s, Mergeable a) => (s -> (a, s)) -> m a Source #
state
with MergingStrategy
knowledge
propagation.
mrgModify :: (MonadState s m, UnionLike m, Mergeable s) => (s -> s) -> m () Source #
modify
with MergingStrategy
knowledge
propagation.
mrgModify' :: (MonadState s m, UnionLike m, Mergeable s) => (s -> s) -> m () Source #
modify'
with MergingStrategy
knowledge
propagation.