Module
Pha.Update
- Package
- purescript-pha
- Repository
- gbagan/purescript-pha
Re-exports from Control.Monad.State.Class
#put Source
put :: forall m s. MonadState s m => s -> m UnitSet the state.
#modify_ Source
modify_ :: forall s m. MonadState s m => (s -> s) -> m Unit#modify Source
modify :: forall s m. MonadState s m => (s -> s) -> m sModify the state by applying a function to the current state. The returned value is the new state value.
#gets Source
gets :: forall s m a. MonadState s m => (s -> a) -> m aGet a value which depends on the current state.
#get Source
get :: forall m s. MonadState s m => m sGet the current state.