title: Combining StateT and State monads
body: <p>Lets say I have a function</p>
  
  <pre><code>f :: State [Int] Int
  </code></pre>
  
  <p>and a function:</p>
  
  <pre><code>g :: StateT [Int] IO Int
  </code></pre>
  
  <p>I want to use <code>f</code> in <code>g</code> and pass the state between them. Is there a library function for<br>
  <code>StateT (return . runState f)</code>? Or in general, given a monad transformer with a corresponding monad, is there a library function for it?</p>