ide-backend-common-0.9.1: Shared library used be ide-backend and ide-backend-server

Safe HaskellSafe-Inferred
LanguageHaskell2010

IdeSession.Strict.StateT

Contents

Description

Version on StateT which evaluates the state strictly at every step

Synopsis

Transformer

newtype StrictStateT s m a Source

Constructors

StrictStateT 

Fields

runStateT :: s -> m (a, s)
 

Instances

Monad m => MonadState s (StrictStateT s m) 
MonadTrans (StrictStateT s) 
Monad m => Monad (StrictStateT s m) 
Monad m => Functor (StrictStateT s m) 
Monad m => Applicative (StrictStateT s m) 

modify :: MonadState s m => (s -> s) -> m ()

evalStateT :: Monad m => StrictStateT s m a -> s -> m a Source

execStateT :: Monad m => StrictStateT s m a -> s -> m s Source

As base monad

runState :: StrictState s a -> s -> (a, s) Source

evalState :: StrictState s a -> s -> a Source

execState :: StrictState s a -> s -> s Source