Gamgine-0.5.1: Some kind of game library or set of utilities.
Gamgine.Lens.State
Synopsis
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