Gamgine-0.7.0: Some kind of game library or set of utilities.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gamgine.Lens.State

Synopsis

Documentation

getL :: Monad m => Lens a b -> StateT a m b Source #

apply the getter lens on the value of the state

setL :: Monad m => Lens a b -> b -> StateT a m () Source #

apply the setter of the lens on the value of the state

modL :: Monad m => Lens a b -> (b -> b) -> StateT a m () Source #

modify the value of the state with a lens