title: How can I convert this function from ExceptT to Except in Haskell?
body: <p>I got very confused with <code>Except</code>, specially since there is no good tutorial around the web. I don't know how can I convert this function from <code>ExceptT</code> to <code>Except</code>:</p>
  
  <pre class="lang-hs prettyprint-override"><code>data Error = Empty deriving (Show)
  
  badFunction :: ExceptT Error IO ()
  badFunction = throwError Empty
  
  main :: IO ()
  main = do
      caught_result &lt;- runExceptT badFunction
      case caught_result of
        Left _ -&gt; putStrLn "caught some error"
        Right _ -&gt; putStrLn "no errors were caught"
  </code></pre>