This file is indexed.

/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource-Internal.html is in libghc-resourcet-doc 1.1.9-1build4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<!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.Resource.Internal</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Control-Monad-Trans-Resource-Internal.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Control-Monad-Trans-Resource-Internal.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">resourcet-1.1.9: Deterministic allocation and freeing of scarce resources.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Control.Monad.Trans.Resource.Internal</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:InvalidAccess">InvalidAccess</a> = <a href="#v:InvalidAccess">InvalidAccess</a> {<ul class="subs"><li><a href="#v:functionName">functionName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li></ul>}</li><li class="src short"><span class="keyword">class</span> (<a href="Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> m, <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> m) =&gt; <a href="#t:MonadResource">MonadResource</a> m <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:ReleaseKey">ReleaseKey</a> = <a href="#v:ReleaseKey">ReleaseKey</a> !(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a>) !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:ReleaseMap">ReleaseMap</a><ul class="subs"><li>= <a href="#v:ReleaseMap">ReleaseMap</a> !NextKey !RefCount !(<a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-IntMap-Lazy.html#t:IntMap">IntMap</a> (<a href="Data-Acquire.html#t:ReleaseType">ReleaseType</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()))</li><li>| <a href="#v:ReleaseMapClosed">ReleaseMapClosed</a></li></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:ResIO">ResIO</a> a = <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:ResourceT">ResourceT</a> m a = <a href="#v:ResourceT">ResourceT</a> {<ul class="subs"><li><a href="#v:unResourceT">unResourceT</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a> -&gt; m a</li></ul>}</li><li class="src short"><a href="#v:stateAlloc">stateAlloc</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:stateCleanup">stateCleanup</a> :: <a href="Data-Acquire.html#t:ReleaseType">ReleaseType</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:transResourceT">transResourceT</a> :: (m a -&gt; n b) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> n b</li><li class="src short"><a href="#v:register-39-">register'</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseKey">ReleaseKey</a></li><li class="src short"><a href="#v:registerType">registerType</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a> -&gt; (<a href="Data-Acquire.html#t:ReleaseType">ReleaseType</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseKey">ReleaseKey</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:InvalidAccess" class="def">InvalidAccess</a> <a href="src/Control-Monad-Trans-Resource-Internal.html#InvalidAccess" class="link">Source</a> <a href="#t:InvalidAccess" class="selflink">#</a></p><div class="doc"><p>Indicates either an error in the library, or misuse of it (e.g., a
 <code>ResourceT</code>'s state is accessed after being released).</p><p>Since 0.3.0</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:InvalidAccess" class="def">InvalidAccess</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:functionName" class="def">functionName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:InvalidAccess" class="caption collapser" onclick="toggleSection('i:InvalidAccess')">Instances</p><div id="section.i:InvalidAccess" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:InvalidAccess:Show:1" class="instance expander" onclick="toggleSection('i:id:InvalidAccess:Show:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:InvalidAccess">InvalidAccess</a></span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-214" class="link">Source</a> <a href="#t:InvalidAccess" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:InvalidAccess:Show:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:InvalidAccess">InvalidAccess</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:InvalidAccess">InvalidAccess</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Control-Monad-Trans-Resource-Internal.html#t:InvalidAccess">InvalidAccess</a>] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:InvalidAccess:Exception:2" class="instance expander" onclick="toggleSection('i:id:InvalidAccess:Exception:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Exception-Base.html#t:Exception">Exception</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:InvalidAccess">InvalidAccess</a></span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-221" class="link">Source</a> <a href="#t:InvalidAccess" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:InvalidAccess:Exception:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toException">toException</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:InvalidAccess">InvalidAccess</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Exception-Base.html#t:SomeException">SomeException</a> <a href="#v:toException" class="selflink">#</a></p><p class="src"><a href="#v:fromException">fromException</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Exception-Base.html#t:SomeException">SomeException</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:InvalidAccess">InvalidAccess</a> <a href="#v:fromException" class="selflink">#</a></p><p class="src"><a href="#v:displayException">displayException</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:InvalidAccess">InvalidAccess</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:displayException" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> (<a href="Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> m, <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> m) =&gt; <a id="t:MonadResource" class="def">MonadResource</a> m <span class="keyword">where</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#MonadResource" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></p><div class="doc"><p>A <code>Monad</code> which allows for safe resource allocation. In theory, any monad
 transformer stack which includes a <code>ResourceT</code> can be an instance of
 <code>MonadResource</code>.</p><p>Note: <code>runResourceT</code> has a requirement for a <code>MonadBaseControl IO m</code> monad,
 which allows control operations to be lifted. A <code>MonadResource</code> does not
 have this requirement. This means that transformers such as <code>ContT</code> can be
 an instance of <code>MonadResource</code>. However, the <code>ContT</code> wrapper will need to be
 unwrapped before calling <code>runResourceT</code>.</p><p>Since 0.3.0</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Control-Monad-Trans-Resource-Internal.html#v:liftResourceT">liftResourceT</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:liftResourceT" class="def">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p><div class="doc"><p>Lift a <code>ResourceT IO</code> action into the current <code>Monad</code>.</p><p>Since 0.4.0</p></div></div><div class="subs instances"><p id="control.i:MonadResource" class="caption collapser" onclick="toggleSection('i:MonadResource')">Instances</p><div id="section.i:MonadResource" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:1" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:1')"></span> <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-List.html#t:ListT">ListT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-295" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-List.html#t:ListT">ListT</a> m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:2" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:2')"></span> <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.5.2.0/Control-Monad-Trans-Maybe.html#t:MaybeT">MaybeT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-296" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.5.2.0/Control-Monad-Trans-Maybe.html#t:MaybeT">MaybeT</a> m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:3" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:3')"></span> (<a href="Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m, <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> m) =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-156" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:4" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:4')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> w, <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m) =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-304" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:5" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:5')"></span> <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-303" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:6" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:6')"></span> <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-299" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:7" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:7')"></span> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:Error">Error</a> e, <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m) =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-297" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:8" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:8')"></span> <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.5.2.0/Control-Monad-Trans-Identity.html#t:IdentityT">IdentityT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-294" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.5.2.0/Control-Monad-Trans-Identity.html#t:IdentityT">IdentityT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:9" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:9')"></span> <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-307" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:10" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:10')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> w, <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m) =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-308" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:11" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:11')"></span> <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader.html#t:ReaderT">ReaderT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> r m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-301" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader.html#t:ReaderT">ReaderT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> r m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:12" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:12')"></span> <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Cont.html#t:ContT">ContT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> r m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-302" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Cont.html#t:ContT">ContT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> r m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:13" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:13')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> w, <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m) =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-305" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadResource:MonadResource:14" class="instance expander" onclick="toggleSection('i:ic:MonadResource:MonadResource:14')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> w, <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> m) =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-306" class="link">Source</a> <a href="#t:MonadResource" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadResource:MonadResource:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ReleaseKey" class="def">ReleaseKey</a> <a href="src/Control-Monad-Trans-Resource-Internal.html#ReleaseKey" class="link">Source</a> <a href="#t:ReleaseKey" class="selflink">#</a></p><div class="doc"><p>A lookup key for a specific release action. This value is returned by
 <code>register</code> and <code>allocate</code>, and is passed to <code>release</code>.</p><p>Since 0.3.0</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ReleaseKey" class="def">ReleaseKey</a> !(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a>) !<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ReleaseMap" class="def">ReleaseMap</a> <a href="src/Control-Monad-Trans-Resource-Internal.html#ReleaseMap" class="link">Source</a> <a href="#t:ReleaseMap" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ReleaseMap" class="def">ReleaseMap</a> !NextKey !RefCount !(<a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-IntMap-Lazy.html#t:IntMap">IntMap</a> (<a href="Data-Acquire.html#t:ReleaseType">ReleaseType</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()))</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ReleaseMapClosed" class="def">ReleaseMapClosed</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:ResIO" class="def">ResIO</a> a = <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a <a href="src/Control-Monad-Trans-Resource-Internal.html#ResIO" class="link">Source</a> <a href="#t:ResIO" class="selflink">#</a></p><div class="doc"><p>Convenient alias for <code>ResourceT IO</code>.</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:ResourceT" class="def">ResourceT</a> m a <a href="src/Control-Monad-Trans-Resource-Internal.html#ResourceT" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></p><div class="doc"><p>The Resource transformer. This transformer keeps track of all registered
 actions, and calls them upon exit (via <code>runResourceT</code>). Actions may be
 registered via <code>register</code>, or resources may be allocated atomically via
 <code>allocate</code>. <code>allocate</code> corresponds closely to <code>bracket</code>.</p><p>Releasing may be performed before exit via the <code>release</code> function. This is a
 highly recommended optimization, as it will ensure that scarce resources are
 freed early. Note that calling <code>release</code> will deregister the action, so that
 a release action will only ever be called once.</p><p>Since 0.3.0</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ResourceT" class="def">ResourceT</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:unResourceT" class="def">unResourceT</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a> -&gt; m a</dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:ResourceT" class="caption collapser" onclick="toggleSection('i:ResourceT')">Instances</p><div id="section.i:ResourceT" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MFunctor:1" class="instance expander" onclick="toggleSection('i:id:ResourceT:MFunctor:1')"></span> <a href="file:///usr/share/doc/libghc-mmorph-doc/html/Control-Monad-Morph.html#t:MFunctor">MFunctor</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a></span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-171" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc"><p>Since 0.4.7</p></td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MFunctor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:hoist">hoist</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; (<span class="keyword">forall</span> a. m a -&gt; n a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> n b <a href="#v:hoist" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MMonad:2" class="instance expander" onclick="toggleSection('i:id:ResourceT:MMonad:2')"></span> <a href="file:///usr/share/doc/libghc-mmorph-doc/html/Control-Monad-Morph.html#t:MMonad">MMonad</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a></span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-174" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc"><p>Since 0.4.7</p></td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MMonad:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:embed">embed</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> n =&gt; (<span class="keyword">forall</span> a. m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> n a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> n b <a href="#v:embed" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadTrans:3" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadTrans:3')"></span> <a href="file:///usr/share/doc/libghc-mmorph-doc/html/Control-Monad-Morph.html#t:MonadTrans">MonadTrans</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a></span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-255" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadTrans:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:lift">lift</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:lift" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadTransControl:4" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadTransControl:4')"></span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:MonadTransControl">MonadTransControl</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a></span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-264" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadTransControl:4" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a>) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a>) a :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:StT" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftWith">liftWith</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:Run">Run</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> -&gt; m a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:liftWith" class="selflink">#</a></p><p class="src"><a href="#v:restoreT">restoreT</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; m (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:restoreT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadRWS:5" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadRWS:5')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Class.html#t:MonadRWS">MonadRWS</a> r w s m =&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Class.html#t:MonadRWS">MonadRWS</a> r w s (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-125" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadRWS:5" class="inst-details hide"></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadBase:6" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadBase:6')"></span> <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> b m =&gt; <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> b (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-261" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadBase:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftBase">liftBase</a> :: b &#945; -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m &#945; <a href="#v:liftBase" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadBaseControl:7" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadBaseControl:7')"></span> <a href="Control-Monad-Trans-Resource.html#t:MonadBaseControl">MonadBaseControl</a> b m =&gt; <a href="Control-Monad-Trans-Resource.html#t:MonadBaseControl">MonadBaseControl</a> b (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-277" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadBaseControl:7" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a>) a :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:StM" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftBaseWith">liftBaseWith</a> :: (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:RunInBase">RunInBase</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m) b -&gt; b a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:liftBaseWith" class="selflink">#</a></p><p class="src"><a href="#v:restoreM">restoreM</a> :: <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m) a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:restoreM" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadError:8" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadError:8')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:MonadError">MonadError</a> e m =&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:MonadError">MonadError</a> e (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-121" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadError:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:throwError">throwError</a> :: e -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:throwError" class="selflink">#</a></p><p class="src"><a href="#v:catchError">catchError</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; (e -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:catchError" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadReader:9" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadReader:9')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader-Class.html#t:MonadReader">MonadReader</a> r m =&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader-Class.html#t:MonadReader">MonadReader</a> r (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-127" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadReader:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:ask">ask</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m r <a href="#v:ask" class="selflink">#</a></p><p class="src"><a href="#v:local">local</a> :: (r -&gt; r) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:local" class="selflink">#</a></p><p class="src"><a href="#v:reader">reader</a> :: (r -&gt; a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:reader" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadState:10" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadState:10')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Class.html#t:MonadState">MonadState</a> s m =&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Class.html#t:MonadState">MonadState</a> s (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-134" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadState:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:get">get</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m s <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:put">put</a> :: s -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m () <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:state">state</a> :: (s -&gt; (a, s)) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:state" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadWriter:11" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadWriter:11')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Class.html#t:MonadWriter">MonadWriter</a> w m =&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Class.html#t:MonadWriter">MonadWriter</a> w (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-138" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadWriter:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:writer">writer</a> :: (a, w) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m () <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m (a, w) <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m (a, w -&gt; w) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:pass" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:Monad:12" class="instance expander" onclick="toggleSection('i:id:ResourceT:Monad:12')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-242" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:Monad:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(&gt;&gt;=)</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; (a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(&gt;&gt;)</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:return" class="selflink">#</a></p><p class="src"><a href="#v:fail">fail</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:fail" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:Functor:13" class="instance expander" onclick="toggleSection('i:id:ResourceT:Functor:13')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-224" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:Functor:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -&gt; b) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(&lt;$)</a> :: a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadFix:14" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadFix:14')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-Fix.html#t:MonadFix">MonadFix</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-Fix.html#t:MonadFix">MonadFix</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-252" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc"><p><em>Since: 1.1.8</em></p></td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadFix:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mfix">mfix</a> :: (a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:mfix" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:Applicative:15" class="instance expander" onclick="toggleSection('i:id:ResourceT:Applicative:15')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-227" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:Applicative:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(&lt;*&gt;)</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m (a -&gt; b) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*&gt;)</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(&lt;*)</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:-60--42-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadIO:16" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadIO:16')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-258" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadIO:16" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftIO">liftIO</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:liftIO" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:Alternative:17" class="instance expander" onclick="toggleSection('i:id:ResourceT:Alternative:17')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Alternative">Alternative</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Alternative">Alternative</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-233" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc"><p>Since 1.1.5</p></td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:Alternative:17" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:empty">empty</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:empty" class="selflink">#</a></p><p class="src"><a href="#v:-60--124--62-">(&lt;|&gt;)</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:-60--124--62-" class="selflink">#</a></p><p class="src"><a href="#v:some">some</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m [a] <a href="#v:some" class="selflink">#</a></p><p class="src"><a href="#v:many">many</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m [a] <a href="#v:many" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadPlus:18" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadPlus:18')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-238" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc"><p>Since 1.1.5</p></td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadPlus:18" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mzero">mzero</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:mzero" class="selflink">#</a></p><p class="src"><a href="#v:mplus">mplus</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:mplus" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadThrow:19" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadThrow:19')"></span> <a href="Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m =&gt; <a href="Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-143" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadThrow:19" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:throwM">throwM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Exception-Base.html#t:Exception">Exception</a> e =&gt; e -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:throwM" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadCatch:20" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadCatch:20')"></span> <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadCatch">MonadCatch</a> m =&gt; <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadCatch">MonadCatch</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-145" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadCatch:20" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:catch">catch</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Exception-Base.html#t:Exception">Exception</a> e =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; (e -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:catch" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadMask:21" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadMask:21')"></span> <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadMask">MonadMask</a> m =&gt; <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadMask">MonadMask</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-149" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadMask:21" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mask">mask</a> :: ((<span class="keyword">forall</span> a. <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b <a href="#v:mask" class="selflink">#</a></p><p class="src"><a href="#v:uninterruptibleMask">uninterruptibleMask</a> :: ((<span class="keyword">forall</span> a. <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b <a href="#v:uninterruptibleMask" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadCont:22" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadCont:22')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Cont-Class.html#t:MonadCont">MonadCont</a> m =&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Cont-Class.html#t:MonadCont">MonadCont</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-118" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadCont:22" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:callCC">callCC</a> :: ((a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m b) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="#v:callCC" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:MonadResource:23" class="instance expander" onclick="toggleSection('i:id:ResourceT:MonadResource:23')"></span> (<a href="Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m, <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> m) =&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:MonadResource">MonadResource</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m)</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-156" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:MonadResource:23" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftResourceT">liftResourceT</a> :: <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a <a href="src/Control-Monad-Trans-Resource-Internal.html#liftResourceT" class="link">Source</a> <a href="#v:liftResourceT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:StT:24" class="instance expander" onclick="toggleSection('i:id:ResourceT:StT:24')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> a</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-266" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:StT:24" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> a = a</div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ResourceT:StM:25" class="instance expander" onclick="toggleSection('i:id:ResourceT:StM:25')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m) a</span> <a href="src/Control-Monad-Trans-Resource-Internal.html#line-279" class="link">Source</a> <a href="#t:ResourceT" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ResourceT:StM:25" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m) a = <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> m a</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:stateAlloc" class="def">stateAlloc</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Control-Monad-Trans-Resource-Internal.html#stateAlloc" class="link">Source</a> <a href="#v:stateAlloc" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:stateCleanup" class="def">stateCleanup</a> :: <a href="Data-Acquire.html#t:ReleaseType">ReleaseType</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Control-Monad-Trans-Resource-Internal.html#stateCleanup" class="link">Source</a> <a href="#v:stateCleanup" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:transResourceT" class="def">transResourceT</a> :: (m a -&gt; n b) -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> m a -&gt; <a href="Control-Monad-Trans-Resource-Internal.html#t:ResourceT">ResourceT</a> n b <a href="src/Control-Monad-Trans-Resource-Internal.html#transResourceT" class="link">Source</a> <a href="#v:transResourceT" class="selflink">#</a></p><div class="doc"><p>Transform the monad a <code>ResourceT</code> lives in. This is most often used to
 strip or add new transformers to a stack, e.g. to run a <code>ReaderT</code>.</p><p>Note that this function is a slight generalization of <code><a href="file:///usr/share/doc/libghc-mmorph-doc/html/Control-Monad-Morph.html#v:hoist">hoist</a></code>.</p><p>Since 0.3.0</p></div></div><div class="top"><p class="src"><a id="v:register-39-" class="def">register'</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseKey">ReleaseKey</a> <a href="src/Control-Monad-Trans-Resource-Internal.html#register%27" class="link">Source</a> <a href="#v:register-39-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:registerType" class="def">registerType</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-IORef.html#t:IORef">IORef</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseMap">ReleaseMap</a> -&gt; (<a href="Data-Acquire.html#t:ReleaseType">ReleaseType</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="Control-Monad-Trans-Resource-Internal.html#t:ReleaseKey">ReleaseKey</a> <a href="src/Control-Monad-Trans-Resource-Internal.html#registerType" class="link">Source</a> <a href="#v:registerType" class="selflink">#</a></p><div class="doc"><p>Since 1.1.2</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>