Hoogle Search
Within LTS Haskell 24.9 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
transactState :: forall s (es :: [Effect]) a . (State s :> es, FOEs es) => Eff es a -> Eff es aheftia-effects Control.Monad.Hefty.State Within the given scope, make the state roll back to the beginning of the scope in case of exceptions, etc.
type
MemoState c k v = MemoStateT c k v Identitymonad-memo Control.Monad.Memo Memoization monad based on StateCache to be used with pure cache containers which support MapLike interface
type
MemoStateT s k v = StateCache Container smonad-memo Control.Monad.Memo Memoization monad transformer based on StateCache to be used with pure cache containers which support MapLike interface
evalMemoState :: MemoState c k v a -> c -> amonad-memo Control.Monad.Memo Returns the result of MonadMemo computation discarding the cache
evalMemoStateT :: Monad m => MemoStateT c k v m a -> c -> m amonad-memo Control.Monad.Memo Returns the result of MonadMemo computation wrapped in monad. This function discards the cache
runMemoState :: MemoState c k v a -> c -> (a, c)monad-memo Control.Monad.Memo Returns the pair of the result of MonadMemo computation along with the final state of the internal pure container
runMemoStateT :: Monad m => MemoStateT s k v m a -> s -> m (a, s)monad-memo Control.Monad.Memo Returns the pair of the result of MonadMemo computation along with the final state of the internal pure container wrapped in monad
type
MemoState c k v = MemoStateT c k v Identitymonad-memo Control.Monad.Trans.Memo.State Memoization monad based on StateCache to be used with pure cache containers which support MapLike interface
type
MemoStateT s k v = StateCache Container smonad-memo Control.Monad.Trans.Memo.State Memoization monad transformer based on StateCache to be used with pure cache containers which support MapLike interface
evalMemoState :: MemoState c k v a -> c -> amonad-memo Control.Monad.Trans.Memo.State Returns the result of MonadMemo computation discarding the cache