title: Monad type mismatch
body: <p>I am attempting to use the IO monad in a Spock application. The following code does not compile:</p>
  
  <pre><code>get "api/entities" $ do
    entities &lt;- loadEntities
    let e1 : xs = entities
    text $ note e1
  </code></pre>
  
  <p><code>loadEntities</code> has the type <code>IO [Entity]</code></p>
  
  <p>The error is <code>Couldn't match type ‘ActionT IO ()’ with ‘t0 -&gt; IO b0’</code></p>
  
  <p>Is Spock using a monad other than IO? If so, how do I get the result of loadEntities?</p>