This file is indexed.

/usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html is in libghc-mtl-doc 2.2.1-5build1.

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
<!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.Writer.Strict</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-Writer-Strict.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Control-Monad-Writer-Strict.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">mtl-2.2.1: Monad classes, using functional dependencies</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(c) Andy Gill 2001<br />(c) Oregon Graduate Institute of Science and Technology 2001</td></tr><tr><th>License</th><td>BSD-style (see the file LICENSE)</td></tr><tr><th>Maintainer</th><td>libraries@haskell.org</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>non-portable (multi-param classes, functional dependencies)</td></tr><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Control.Monad.Writer.Strict</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">MonadWriter class</a></li><li><a href="#g:2">The Writer monad</a></li><li><a href="#g:3">The WriterT monad transformer</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Strict writer monads.</p><p>Inspired by the paper
      <em>Functional Programming with Overloading and Higher-Order Polymorphism</em>,
        Mark P Jones (<a href="http://web.cecs.pdx.edu/~mpj/pubs/springschool.html">http://web.cecs.pdx.edu/~mpj/pubs/springschool.html</a>)
          Advanced School of Functional Programming, 1995.</p></div></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">class</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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m) =&gt; <a href="#t:MonadWriter">MonadWriter</a> w m | m -&gt; w <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:listens">listens</a> :: <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m =&gt; (w -&gt; b) -&gt; m a -&gt; m (a, b)</li><li class="src short"><a href="#v:censor">censor</a> :: <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m =&gt; (w -&gt; w) -&gt; m a -&gt; m a</li><li class="src short"><span class="keyword">type</span> <a href="#t:Writer">Writer</a> w = <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Identity.html#t:Identity">Identity</a></li><li class="src short"><a href="#v:runWriter">runWriter</a> :: <a href="Control-Monad-Writer-Strict.html#t:Writer">Writer</a> w a -&gt; (a, w)</li><li class="src short"><a href="#v:execWriter">execWriter</a> :: <a href="Control-Monad-Writer-Strict.html#t:Writer">Writer</a> w a -&gt; w</li><li class="src short"><a href="#v:mapWriter">mapWriter</a> :: ((a, w) -&gt; (b, w')) -&gt; <a href="Control-Monad-Writer-Strict.html#t:Writer">Writer</a> w a -&gt; <a href="Control-Monad-Writer-Strict.html#t:Writer">Writer</a> w' b</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:WriterT">WriterT</a> w m 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> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> = <a href="#v:WriterT">WriterT</a> {<ul class="subs"><li><a href="#v:runWriterT">runWriterT</a> :: m (a, w)</li></ul>}</li><li class="src short"><a href="#v:execWriterT">execWriterT</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="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; m w</li><li class="src short"><a href="#v:mapWriterT">mapWriterT</a> :: (m (a, w) -&gt; n (b, w')) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w' n b</li><li class="src short">module <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html">Control.Monad</a></li><li class="src short">module <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-Fix.html">Control.Monad.Fix</a></li><li class="src short">module <a href="Control-Monad-Trans.html">Control.Monad.Trans</a></li><li class="src short">module <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html">Data.Monoid</a></li></ul></div><div id="interface"><h1 id="g:1">MonadWriter class</h1><div class="top"><p class="src"><span class="keyword">class</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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m) =&gt; <a id="t:MonadWriter" class="def">MonadWriter</a> w m | m -&gt; w <span class="keyword">where</span> <a href="src/Control-Monad-Writer-Class.html#MonadWriter" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:writer" class="def">writer</a> :: (a, w) -&gt; m a <a href="src/Control-Monad-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><div class="doc"><p><code><code><a href="Control-Monad-Writer-Strict.html#v:writer">writer</a></code> (a,w)</code> embeds a simple writer action.</p></div><p class="src"><a id="v:tell" class="def">tell</a> :: w -&gt; m () <a href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><div class="doc"><p><code><code><a href="Control-Monad-Writer-Strict.html#v:tell">tell</a></code> w</code> is an action that produces the output <code>w</code>.</p></div><p class="src"><a id="v:listen" class="def">listen</a> :: m a -&gt; m (a, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><div class="doc"><p><code><code><a href="Control-Monad-Writer-Strict.html#v:listen">listen</a></code> m</code> is an action that executes the action <code>m</code> and adds
 its output to the value of the computation.</p></div><p class="src"><a id="v:pass" class="def">pass</a> :: m (a, w -&gt; w) -&gt; m a <a href="src/Control-Monad-Writer-Class.html#pass" class="link">Source</a> <a href="#v:pass" class="selflink">#</a></p><div class="doc"><p><code><code><a href="Control-Monad-Writer-Strict.html#v:pass">pass</a></code> m</code> is an action that executes the action <code>m</code>, which
 returns a value and a function, and returns the value, applying
 the function to the output.</p></div></div><div class="subs instances"><p id="control.i:MonadWriter" class="caption collapser" onclick="toggleSection('i:MonadWriter')">Instances</p><div id="section.i:MonadWriter" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadWriter:MonadWriter:1" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter:1')"></span> <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<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-Writer-Class.html#line-151" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter:MonadWriter:1" 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="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-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&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 href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</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 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, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</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 (a, w -&gt; w) -&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-Writer-Class.html#pass" class="link">Source</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:ic:MonadWriter:MonadWriter:2" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter:2')"></span> <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<a href="Control-Monad-State-Strict.html#t:StateT">StateT</a> s m)</span> <a href="src/Control-Monad-Writer-Class.html#line-169" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter:MonadWriter:2" 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-State-Strict.html#t:StateT">StateT</a> s m a <a href="src/Control-Monad-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="Control-Monad-State-Strict.html#t:StateT">StateT</a> s m () <a href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Control-Monad-State-Strict.html#t:StateT">StateT</a> s m a -&gt; <a href="Control-Monad-State-Strict.html#t:StateT">StateT</a> s m (a, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Control-Monad-State-Strict.html#t:StateT">StateT</a> s m (a, w -&gt; w) -&gt; <a href="Control-Monad-State-Strict.html#t:StateT">StateT</a> s m a <a href="src/Control-Monad-Writer-Class.html#pass" class="link">Source</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:ic:MonadWriter:MonadWriter:3" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter:3')"></span> <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<a href="Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m)</span> <a href="src/Control-Monad-Writer-Class.html#line-163" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter:MonadWriter:3" 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-State-Lazy.html#t:StateT">StateT</a> s m a <a href="src/Control-Monad-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m () <a href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m a -&gt; <a href="Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m (a, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m (a, w -&gt; w) -&gt; <a href="Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m a <a href="src/Control-Monad-Writer-Class.html#pass" class="link">Source</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:ic:MonadWriter:MonadWriter:4" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter:4')"></span> <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<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-Writer-Class.html#line-145" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter:MonadWriter:4" 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="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-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&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 href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</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 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, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</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 (a, w -&gt; w) -&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-Writer-Class.html#pass" class="link">Source</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:ic:MonadWriter:MonadWriter:5" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter:5')"></span> <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<a href="Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m)</span> <a href="src/Control-Monad-Writer-Class.html#line-139" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter:MonadWriter:5" 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-Except.html#t:ExceptT">ExceptT</a> e m a <a href="src/Control-Monad-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m () <a href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m a -&gt; <a href="Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m (a, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m (a, w -&gt; w) -&gt; <a href="Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m a <a href="src/Control-Monad-Writer-Class.html#pass" class="link">Source</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:ic:MonadWriter:MonadWriter:6" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter:6')"></span> (<a href="Control-Monad-Error-Class.html#t:Error">Error</a> e, <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m) =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<a href="Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m)</span> <a href="src/Control-Monad-Writer-Class.html#line-133" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter:MonadWriter:6" 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-Error.html#t:ErrorT">ErrorT</a> e m a <a href="src/Control-Monad-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m () <a href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m a -&gt; <a href="Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m (a, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m (a, w -&gt; w) -&gt; <a href="Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m a <a href="src/Control-Monad-Writer-Class.html#pass" class="link">Source</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:ic:MonadWriter:MonadWriter:7" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter:7')"></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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m) =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Control-Monad-Writer-Class.html#line-109" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter:MonadWriter:7" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m () <a href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m (a, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m (a, w -&gt; w) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Writer-Class.html#pass" class="link">Source</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:ic:MonadWriter:MonadWriter:8" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter:8')"></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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m) =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<a href="Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Control-Monad-Writer-Class.html#line-103" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter:MonadWriter:8" 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-Writer-Lazy.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m () <a href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m (a, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m (a, w -&gt; w) -&gt; <a href="Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Writer-Class.html#pass" class="link">Source</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:ic:MonadWriter:MonadWriter:9" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter:9')"></span> <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<a href="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-Writer-Class.html#line-157" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter:MonadWriter:9" 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-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-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="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 href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="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 -&gt; <a href="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, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="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, w -&gt; w) -&gt; <a href="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-Writer-Class.html#pass" class="link">Source</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:ic:MonadWriter:MonadWriter:10" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter: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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m) =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<a href="Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m)</span> <a href="src/Control-Monad-Writer-Class.html#line-121" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter:MonadWriter:10" 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-RWS-Strict.html#t:RWST">RWST</a> r w s m a <a href="src/Control-Monad-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m () <a href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m a -&gt; <a href="Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m (a, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m (a, w -&gt; w) -&gt; <a href="Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m a <a href="src/Control-Monad-Writer-Class.html#pass" class="link">Source</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:ic:MonadWriter:MonadWriter:11" class="instance expander" onclick="toggleSection('i:ic:MonadWriter:MonadWriter:11')"></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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m) =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<a href="Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m)</span> <a href="src/Control-Monad-Writer-Class.html#line-115" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:MonadWriter: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-RWS-Lazy.html#t:RWST">RWST</a> r w s m a <a href="src/Control-Monad-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m () <a href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m a -&gt; <a href="Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m (a, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m (a, w -&gt; w) -&gt; <a href="Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m a <a href="src/Control-Monad-Writer-Class.html#pass" class="link">Source</a> <a href="#v:pass" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:listens" class="def">listens</a> :: <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m =&gt; (w -&gt; b) -&gt; m a -&gt; m (a, b) <a href="src/Control-Monad-Writer-Class.html#listens" class="link">Source</a> <a href="#v:listens" class="selflink">#</a></p><div class="doc"><p><code><code><a href="Control-Monad-Writer-Strict.html#v:listens">listens</a></code> f m</code> is an action that executes the action <code>m</code> and adds
 the result of applying <code>f</code> to the output to the value of the computation.</p><ul><li><pre><code><a href="Control-Monad-Writer-Strict.html#v:listens">listens</a></code> f m = <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#v:liftM">liftM</a></code> (id *** f) (<code><a href="Control-Monad-Writer-Strict.html#v:listen">listen</a></code> m)</pre></li></ul></div></div><div class="top"><p class="src"><a id="v:censor" class="def">censor</a> :: <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w m =&gt; (w -&gt; w) -&gt; m a -&gt; m a <a href="src/Control-Monad-Writer-Class.html#censor" class="link">Source</a> <a href="#v:censor" class="selflink">#</a></p><div class="doc"><p><code><code><a href="Control-Monad-Writer-Strict.html#v:censor">censor</a></code> f m</code> is an action that executes the action <code>m</code> and
 applies the function <code>f</code> to its output, leaving the return value
 unchanged.</p><ul><li><pre><code><a href="Control-Monad-Writer-Strict.html#v:censor">censor</a></code> f m = <code><a href="Control-Monad-Writer-Strict.html#v:pass">pass</a></code> (<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#v:liftM">liftM</a></code> (\x -&gt; (x,f)) m)</pre></li></ul></div></div><h1 id="g:2">The Writer monad</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Writer" class="def">Writer</a> w = <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Identity.html#t:Identity">Identity</a> <a href="#t:Writer" class="selflink">#</a></p><div class="doc"><p>A writer monad parameterized by the type <code>w</code> of output to accumulate.</p><p>The <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#v:return">return</a></code> function produces the output <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#v:mempty">mempty</a></code>, while <code>&gt;&gt;=</code>
 combines the outputs of the subcomputations using <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#v:mappend">mappend</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:runWriter" class="def">runWriter</a> :: <a href="Control-Monad-Writer-Strict.html#t:Writer">Writer</a> w a -&gt; (a, w) <a href="#v:runWriter" class="selflink">#</a></p><div class="doc"><p>Unwrap a writer computation as a (result, output) pair.
 (The inverse of <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.5.2.0/Control-Monad-Trans-Writer-Strict.html#v:writer">writer</a></code>.)</p></div></div><div class="top"><p class="src"><a id="v:execWriter" class="def">execWriter</a> :: <a href="Control-Monad-Writer-Strict.html#t:Writer">Writer</a> w a -&gt; w <a href="#v:execWriter" class="selflink">#</a></p><div class="doc"><p>Extract the output from a writer computation.</p><ul><li><pre><code><a href="Control-Monad-Writer-Strict.html#v:execWriter">execWriter</a></code> m = <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Tuple.html#v:snd">snd</a></code> (<code><a href="Control-Monad-Writer-Strict.html#v:runWriter">runWriter</a></code> m)</pre></li></ul></div></div><div class="top"><p class="src"><a id="v:mapWriter" class="def">mapWriter</a> :: ((a, w) -&gt; (b, w')) -&gt; <a href="Control-Monad-Writer-Strict.html#t:Writer">Writer</a> w a -&gt; <a href="Control-Monad-Writer-Strict.html#t:Writer">Writer</a> w' b <a href="#v:mapWriter" class="selflink">#</a></p><div class="doc"><p>Map both the return value and output of a computation using
 the given function.</p><ul><li><pre><code><a href="Control-Monad-Writer-Strict.html#v:runWriter">runWriter</a></code> (<code><a href="Control-Monad-Writer-Strict.html#v:mapWriter">mapWriter</a></code> f m) = f (<code><a href="Control-Monad-Writer-Strict.html#v:runWriter">runWriter</a></code> m)</pre></li></ul></div></div><h1 id="g:3">The WriterT monad transformer</h1><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:WriterT" class="def">WriterT</a> w m 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> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:WriterT" class="selflink">#</a></p><div class="doc"><p>A writer monad parameterized by:</p><ul><li><code>w</code> - the output to accumulate.</li><li><code>m</code> - The inner monad.</li></ul><p>The <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#v:return">return</a></code> function produces the output <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#v:mempty">mempty</a></code>, while <code>&gt;&gt;=</code>
 combines the outputs of the subcomputations using <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#v:mappend">mappend</a></code>.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:WriterT" class="def">WriterT</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:runWriterT" class="def">runWriterT</a> :: m (a, w)</dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:WriterT" class="caption collapser" onclick="toggleSection('i:WriterT')">Instances</p><div id="section.i:WriterT" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:MonadWriter:1" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadWriter:1')"></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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m) =&gt; <a href="Control-Monad-Writer-Strict.html#t:MonadWriter">MonadWriter</a> w (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Control-Monad-Writer-Class.html#line-109" class="link">Source</a> <a href="#t:MonadWriter" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadWriter:1" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Writer-Class.html#writer" class="link">Source</a> <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m () <a href="src/Control-Monad-Writer-Class.html#tell" class="link">Source</a> <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m (a, w) <a href="src/Control-Monad-Writer-Class.html#listen" class="link">Source</a> <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m (a, w -&gt; w) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Writer-Class.html#pass" class="link">Source</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:WriterT:MonadState:2" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadState:2')"></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-State-Class.html#t:MonadState">MonadState</a> s m) =&gt; <a href="Control-Monad-State-Class.html#t:MonadState">MonadState</a> s (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Control-Monad-State-Class.html#line-165" class="link">Source</a> <a href="#t:MonadState" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadState:2" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m s <a href="src/Control-Monad-State-Class.html#get" class="link">Source</a> <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:put">put</a> :: s -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m () <a href="src/Control-Monad-State-Class.html#put" class="link">Source</a> <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-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-State-Class.html#state" class="link">Source</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:WriterT:MonadReader:3" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadReader:3')"></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-Reader-Class.html#t:MonadReader">MonadReader</a> r m) =&gt; <a href="Control-Monad-Reader-Class.html#t:MonadReader">MonadReader</a> r (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Control-Monad-Reader-Class.html#line-172" class="link">Source</a> <a href="#t:MonadReader" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadReader:3" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m r <a href="src/Control-Monad-Reader-Class.html#ask" class="link">Source</a> <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-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Reader-Class.html#local" class="link">Source</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-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Reader-Class.html#reader" class="link">Source</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:WriterT:MonadError:4" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadError: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-Error-Class.html#t:MonadError">MonadError</a> e m) =&gt; <a href="Control-Monad-Error-Class.html#t:MonadError">MonadError</a> e (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Control-Monad-Error-Class.html#line-162" class="link">Source</a> <a href="#t:MonadError" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadError:4" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Error-Class.html#throwError" class="link">Source</a> <a href="#v:throwError" class="selflink">#</a></p><p class="src"><a href="#v:catchError">catchError</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; (e -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Error-Class.html#catchError" class="link">Source</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:WriterT:MonadTrans:5" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadTrans:5')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> w =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.5.2.0/Control-Monad-Trans-Class.html#t:MonadTrans">MonadTrans</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadTrans:5" 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-Writer-Strict.html#t:WriterT">WriterT</a> w 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:WriterT:Monad:6" class="instance expander" onclick="toggleSection('i:id:WriterT:Monad:6')"></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="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-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Monad:6" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; (a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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-Writer-Strict.html#t:WriterT">WriterT</a> w 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-Writer-Strict.html#t:WriterT">WriterT</a> w 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:WriterT:Functor:7" class="instance expander" onclick="toggleSection('i:id:WriterT:Functor:7')"></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-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Functor:7" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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-Writer-Strict.html#t:WriterT">WriterT</a> w m b -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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:WriterT:MonadFix:8" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadFix:8')"></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="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-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadFix:8" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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:WriterT:MonadFail:9" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadFail:9')"></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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-Fail.html#t:MonadFail">MonadFail</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-Fail.html#t:MonadFail">MonadFail</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadFail:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</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-Writer-Strict.html#t:WriterT">WriterT</a> w 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:WriterT:Applicative:10" class="instance expander" onclick="toggleSection('i:id:WriterT:Applicative: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="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-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Applicative:10" 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-Writer-Strict.html#t:WriterT">WriterT</a> w 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-Writer-Strict.html#t:WriterT">WriterT</a> w m (a -&gt; b) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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:WriterT:Foldable:11" class="instance expander" onclick="toggleSection('i:id:WriterT:Foldable:11')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Foldable.html#t:Foldable">Foldable</a> f =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Foldable.html#t:Foldable">Foldable</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Foldable:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fold">fold</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> m =&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f m -&gt; m <a href="#v:fold" class="selflink">#</a></p><p class="src"><a href="#v:foldMap">foldMap</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> m =&gt; (a -&gt; m) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; m <a href="#v:foldMap" class="selflink">#</a></p><p class="src"><a href="#v:foldr">foldr</a> :: (a -&gt; b -&gt; b) -&gt; b -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; b <a href="#v:foldr" class="selflink">#</a></p><p class="src"><a href="#v:foldr-39-">foldr'</a> :: (a -&gt; b -&gt; b) -&gt; b -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; b <a href="#v:foldr-39-" class="selflink">#</a></p><p class="src"><a href="#v:foldl">foldl</a> :: (b -&gt; a -&gt; b) -&gt; b -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; b <a href="#v:foldl" class="selflink">#</a></p><p class="src"><a href="#v:foldl-39-">foldl'</a> :: (b -&gt; a -&gt; b) -&gt; b -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; b <a href="#v:foldl-39-" class="selflink">#</a></p><p class="src"><a href="#v:foldr1">foldr1</a> :: (a -&gt; a -&gt; a) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; a <a href="#v:foldr1" class="selflink">#</a></p><p class="src"><a href="#v:foldl1">foldl1</a> :: (a -&gt; a -&gt; a) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; a <a href="#v:foldl1" class="selflink">#</a></p><p class="src"><a href="#v:toList">toList</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; [a] <a href="#v:toList" class="selflink">#</a></p><p class="src"><a href="#v:null">null</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:null" class="selflink">#</a></p><p class="src"><a href="#v:length">length</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:length" class="selflink">#</a></p><p class="src"><a href="#v:elem">elem</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:elem" class="selflink">#</a></p><p class="src"><a href="#v:maximum">maximum</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> a =&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; a <a href="#v:maximum" class="selflink">#</a></p><p class="src"><a href="#v:minimum">minimum</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> a =&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; a <a href="#v:minimum" class="selflink">#</a></p><p class="src"><a href="#v:sum">sum</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Num">Num</a> a =&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; a <a href="#v:sum" class="selflink">#</a></p><p class="src"><a href="#v:product">product</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Num">Num</a> a =&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; a <a href="#v:product" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:Traversable:12" class="instance expander" onclick="toggleSection('i:id:WriterT:Traversable:12')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Traversable.html#t:Traversable">Traversable</a> f =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Traversable.html#t:Traversable">Traversable</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Traversable:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:traverse">traverse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; (a -&gt; f b) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; f (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f b) <a href="#v:traverse" class="selflink">#</a></p><p class="src"><a href="#v:sequenceA">sequenceA</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f (f a) -&gt; f (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a) <a href="#v:sequenceA" class="selflink">#</a></p><p class="src"><a href="#v:mapM">mapM</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 -&gt; m b) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a -&gt; m (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f b) <a href="#v:mapM" class="selflink">#</a></p><p class="src"><a href="#v:sequence">sequence</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="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f (m a) -&gt; m (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w f a) <a href="#v:sequence" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:Eq1:13" class="instance expander" onclick="toggleSection('i:id:WriterT:Eq1:13')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> w, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Eq1">Eq1</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Eq1">Eq1</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Eq1:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftEq">liftEq</a> :: (a -&gt; b -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:liftEq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:Ord1:14" class="instance expander" onclick="toggleSection('i:id:WriterT:Ord1:14')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> w, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Ord1">Ord1</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Ord1">Ord1</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Ord1:14" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftCompare">liftCompare</a> :: (a -&gt; b -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:liftCompare" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:Read1:15" class="instance expander" onclick="toggleSection('i:id:WriterT:Read1:15')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Read.html#t:Read">Read</a> w, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Read1">Read1</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Read1">Read1</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Read1:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftReadsPrec">liftReadsPrec</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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> a) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [a] -&gt; <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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a) <a href="#v:liftReadsPrec" class="selflink">#</a></p><p class="src"><a href="#v:liftReadList">liftReadList</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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> a) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [a] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a] <a href="#v:liftReadList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:Show1:16" class="instance expander" onclick="toggleSection('i:id:WriterT:Show1:16')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> w, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Show1">Show1</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Show1">Show1</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Show1:16" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftShowsPrec">liftShowsPrec</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 -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a>) -&gt; ([a] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a>) -&gt; <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-Writer-Strict.html#t:WriterT">WriterT</a> w m 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:liftShowsPrec" class="selflink">#</a></p><p class="src"><a href="#v:liftShowList">liftShowList</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 -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a>) -&gt; ([a] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a>) -&gt; [<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m 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:liftShowList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:MonadZip:17" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadZip:17')"></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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-Zip.html#t:MonadZip">MonadZip</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-Zip.html#t:MonadZip">MonadZip</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadZip:17" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mzip">mzip</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m (a, b) <a href="#v:mzip" class="selflink">#</a></p><p class="src"><a href="#v:mzipWith">mzipWith</a> :: (a -&gt; b -&gt; c) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m c <a href="#v:mzipWith" class="selflink">#</a></p><p class="src"><a href="#v:munzip">munzip</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m (a, b) -&gt; (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a, <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b) <a href="#v:munzip" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:MonadIO:18" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadIO:18')"></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="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-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadIO:18" 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-Writer-Strict.html#t:WriterT">WriterT</a> w 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:WriterT:Alternative:19" class="instance expander" onclick="toggleSection('i:id:WriterT:Alternative:19')"></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="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-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Alternative:19" 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-Writer-Strict.html#t:WriterT">WriterT</a> w 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m [a] <a href="#v:some" class="selflink">#</a></p><p class="src"><a href="#v:many">many</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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:WriterT:MonadPlus:20" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadPlus:20')"></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="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-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadPlus:20" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="#v:mzero" class="selflink">#</a></p><p class="src"><a href="#v:mplus">mplus</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w 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:WriterT:MonadCont:21" class="instance expander" onclick="toggleSection('i:id:WriterT:MonadCont:21')"></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-Cont-Class.html#t:MonadCont">MonadCont</a> m) =&gt; <a href="Control-Monad-Cont-Class.html#t:MonadCont">MonadCont</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Control-Monad-Cont-Class.html#line-133" class="link">Source</a> <a href="#t:MonadCont" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:MonadCont:21" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m b) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Control-Monad-Cont-Class.html#callCC" class="link">Source</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:WriterT:Eq:22" class="instance expander" onclick="toggleSection('i:id:WriterT:Eq:22')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> w, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Eq1">Eq1</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Eq:22" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:Ord:23" class="instance expander" onclick="toggleSection('i:id:WriterT:Ord:23')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> w, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Ord1">Ord1</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Ord:23" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:Read:24" class="instance expander" onclick="toggleSection('i:id:WriterT:Read:24')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Read.html#t:Read">Read</a> w, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Read1">Read1</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Read.html#t:Read">Read</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Read.html#t:Read">Read</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Read:24" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a) <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> (<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a) <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WriterT:Show:25" class="instance expander" onclick="toggleSection('i:id:WriterT:Show:25')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> w, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor-Classes.html#t:Show1">Show1</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> a) =&gt; <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-Writer-Strict.html#t:WriterT">WriterT</a> w m a)</span></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:WriterT:Show:25" 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-Writer-Strict.html#t:WriterT">WriterT</a> w m 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-Writer-Strict.html#t:WriterT">WriterT</a> w m 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-Writer-Strict.html#t:WriterT">WriterT</a> w m 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></table></div></div></div><div class="top"><p class="src"><a id="v:execWriterT" class="def">execWriterT</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="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; m w <a href="#v:execWriterT" class="selflink">#</a></p><div class="doc"><p>Extract the output from a writer computation.</p><ul><li><pre><code><a href="Control-Monad-Writer-Strict.html#v:execWriterT">execWriterT</a></code> m = <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#v:liftM">liftM</a></code> <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Tuple.html#v:snd">snd</a></code> (<code><a href="Control-Monad-Writer-Strict.html#v:runWriterT">runWriterT</a></code> m)</pre></li></ul></div></div><div class="top"><p class="src"><a id="v:mapWriterT" class="def">mapWriterT</a> :: (m (a, w) -&gt; n (b, w')) -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w' n b <a href="#v:mapWriterT" class="selflink">#</a></p><div class="doc"><p>Map both the return value and output of a computation using
 the given function.</p><ul><li><pre><code><a href="Control-Monad-Writer-Strict.html#v:runWriterT">runWriterT</a></code> (<code><a href="Control-Monad-Writer-Strict.html#v:mapWriterT">mapWriterT</a></code> f m) = f (<code><a href="Control-Monad-Writer-Strict.html#v:runWriterT">runWriterT</a></code> m)</pre></li></ul></div></div><div class="top"><p class="src">module <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html">Control.Monad</a></p></div><div class="top"><p class="src">module <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-Fix.html">Control.Monad.Fix</a></p></div><div class="top"><p class="src">module <a href="Control-Monad-Trans.html">Control.Monad.Trans</a></p></div><div class="top"><p class="src">module <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html">Data.Monoid</a></p></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>