<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Control.Monad.Trans.State.Strict</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[ window.onload = function () {pageLoad();}; //]]> </script></head><body id="mini"><div id="module-header"><p class="caption">Control.Monad.Trans.State.Strict</p></div><div id="interface"><h1>The State monad </h1><div class="top"><p class="src"><span class="keyword">type</span> <a href="Control-Monad-Trans-State-Strict.html#t:State" target="main">State</a> s</p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:state" target="main">state</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:runState" target="main">runState</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:evalState" target="main">evalState</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:execState" target="main">execState</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:mapState" target="main">mapState</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:withState" target="main">withState</a></p></div><h1>The StateT monad transformer </h1><div class="top"><p class="src"><span class="keyword">data</span> <a href="Control-Monad-Trans-State-Strict.html#t:StateT" target="main">StateT</a> s m a</p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:evalStateT" target="main">evalStateT</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:execStateT" target="main">execStateT</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:mapStateT" target="main">mapStateT</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:withStateT" target="main">withStateT</a></p></div><h1>State operations </h1><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:get" target="main">get</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:put" target="main">put</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:modify" target="main">modify</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:gets" target="main">gets</a></p></div><h1>Lifting other operations </h1><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:liftCallCC" target="main">liftCallCC</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:liftCallCC-39-" target="main">liftCallCC'</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:liftCatch" target="main">liftCatch</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:liftListen" target="main">liftListen</a></p></div><div class="top"><p class="src"><a href="Control-Monad-Trans-State-Strict.html#v:liftPass" target="main">liftPass</a></p></div><h1>Examples </h1><h2>State monads </h2><h2>Counting </h2><h2>Labelling trees </h2></div></body></html>