Safe Haskell | None |
---|---|

Language | Haskell2010 |

Versions of the lens operators for MonadStates instead of MonadState.

# Documentation

module Control.Monad.States

use :: MonadStates s m => Getting a s a -> m a Source #

get :: MonadStates s m => m s Source #

put :: MonadStates s m => s -> m () Source #

(.=) :: MonadStates s m => ASetter s s a b -> b -> m () Source #

(%=) :: MonadStates s m => ASetter s s a b -> (a -> b) -> m () Source #

(<~) :: MonadStates s m => ASetter s s a b -> m b -> m () Source #

(<.=) :: MonadStates s m => ASetter s s a b -> b -> m b Source #