definition: |
modify :: Monad m => (s -> s) -> StateT s m () modify f = StateT $ \s -> return ((), f s) |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
failfree: |
(_, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_) |-> _} |
name: |
modify |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
Prelude.Monad b => (a -> a) -> StateT a b () |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
reducible on all ground data terms |