mtl-unleashed-0.3.2: MTL classes without the functional dependency

Safe HaskellNone
LanguageHaskell2010

Control.Monad.States

Description

MonadState without the function dependency m -> s.

Synopsis

Documentation

class Monad m => MonadStates s m where Source

Copy of MonadState with functional dependency m -> s removed.

Minimal complete definition

Nothing

Methods

get :: m s Source

put :: s -> m () Source

Instances

modify :: MonadStates s m => (s -> s) -> m () Source

Copy of mondify

modify' :: MonadStates s m => (s -> s) -> m () Source

Copy of modify'

gets :: MonadStates s m => (s -> a) -> m a Source

Copy of gets

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

iuse :: MonadStates s m => IndexedGetting i (i, a) s a -> m (i, a) Source

uses :: MonadStates s m => LensLike' (Const r) s a -> (a -> r) -> m r Source

iuses :: MonadStates s m => IndexedGetting i r s a -> (i -> a -> r) -> m r Source