/usr/share/doc/libghc-monad-journal-doc/html/Control-Monad-Journal-Class.html is in libghc-monad-journal-doc 0.7.2-3build6.
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 | <!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.Journal.Class</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-Journal-Class.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Control-Monad-Journal-Class.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">monad-journal-0.7.2: Pure logger typeclass and monad transformer</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(C) Dimitri Sabadie</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>dimitri.sabadie@gmail.com</td></tr><tr><th>Stability</th><td>stable</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Control.Monad.Journal.Class</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">MonadJournal</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p><code>MonadWriter</code> on steroids.</p><p><code><a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a></code> is a more controlable version of <code>MonadWriter</code> because it
enables you to access the <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a></code> being computed up. You can then access
logs inside the computation itself, whereas you cannot with
<code>MonadWriter</code> – unless you use specific functions like <code>listen</code>, but that
still stacks <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a></code> in the monad.</p><p>Typically, you can use <code><a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a></code> when you come across the logging
problem and you need logs as long as you proceed.</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) => <a href="#t:MonadJournal">MonadJournal</a> w m | m -> w <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:sink">sink</a> :: (<a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w 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) => (w -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -> m ()</li><li class="src short"><a href="#v:absorb">absorb</a> :: <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w m => (a, w) -> m a</li></ul></div><div id="interface"><h1 id="g:1">MonadJournal</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) => <a id="t:MonadJournal" class="def">MonadJournal</a> w m | m -> w <span class="keyword">where</span> <a href="src/Control-Monad-Journal-Class.html#MonadJournal" class="link">Source</a> <a href="#t:MonadJournal" class="selflink">#</a></p><div class="doc"><p>This typeclass provides the ability to accumulate <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a></code> in a monad
via the <code><a href="Control-Monad-Journal-Class.html#v:journal">journal</a></code> function; to get them via the <code><a href="Control-Monad-Journal-Class.html#v:history">history</a></code> function and
finally, to purge them all with the <code><a href="Control-Monad-Journal-Class.html#v:clear">clear</a></code> function.</p><p>In most cases, you won’t need <code><a href="Control-Monad-Journal-Class.html#v:history">history</a></code> neither <code><a href="Control-Monad-Journal-Class.html#v:clear">clear</a></code>. There’s a
cool function that combines both and enables you to deal with the
<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a></code>: <code><a href="Control-Monad-Journal-Class.html#v:sink">sink</a></code>.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Control-Monad-Journal-Class.html#v:journal">journal</a>, <a href="Control-Monad-Journal-Class.html#v:history">history</a>, <a href="Control-Monad-Journal-Class.html#v:clear">clear</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:journal" class="def">journal</a> :: w -> m () <a href="src/Control-Monad-Journal-Class.html#journal" class="link">Source</a> <a href="#v:journal" class="selflink">#</a></p><div class="doc"><p>Log something.</p></div><p class="src"><a id="v:history" class="def">history</a> :: m w <a href="src/Control-Monad-Journal-Class.html#history" class="link">Source</a> <a href="#v:history" class="selflink">#</a></p><div class="doc"><p>Extract the logs history.</p></div><p class="src"><a id="v:clear" class="def">clear</a> :: m () <a href="src/Control-Monad-Journal-Class.html#clear" class="link">Source</a> <a href="#v:clear" class="selflink">#</a></p><div class="doc"><p>Clear the logs history.</p></div></div><div class="subs instances"><p id="control.i:MonadJournal" class="caption collapser" onclick="toggleSection('i:MonadJournal')">Instances</p><div id="section.i:MonadJournal" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadJournal:MonadJournal:1" class="instance expander" onclick="toggleSection('i:ic:MonadJournal:MonadJournal:1')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m, <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-Journal-Class.html#t:MonadJournal">MonadJournal</a> w m) => <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</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-Journal-Class.html#line-76" class="link">Source</a> <a href="#t:MonadJournal" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:MonadJournal:MonadJournal:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:journal">journal</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 () <a href="src/Control-Monad-Journal-Class.html#journal" class="link">Source</a> <a href="#v:journal" class="selflink">#</a></p><p class="src"><a href="#v:history">history</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 w <a href="src/Control-Monad-Journal-Class.html#history" class="link">Source</a> <a href="#v:history" class="selflink">#</a></p><p class="src"><a href="#v:clear">clear</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 href="src/Control-Monad-Journal-Class.html#clear" class="link">Source</a> <a href="#v:clear" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadJournal:MonadJournal:2" class="instance expander" onclick="toggleSection('i:ic:MonadJournal:MonadJournal:2')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m, <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-Journal-Class.html#t:MonadJournal">MonadJournal</a> w m) => <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w (<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-Journal-Class.html#line-71" class="link">Source</a> <a href="#t:MonadJournal" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:MonadJournal:MonadJournal:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:journal">journal</a> :: w -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-List.html#t:ListT">ListT</a> m () <a href="src/Control-Monad-Journal-Class.html#journal" class="link">Source</a> <a href="#v:journal" class="selflink">#</a></p><p class="src"><a href="#v:history">history</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-List.html#t:ListT">ListT</a> m w <a href="src/Control-Monad-Journal-Class.html#history" class="link">Source</a> <a href="#v:history" class="selflink">#</a></p><p class="src"><a href="#v:clear">clear</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-List.html#t:ListT">ListT</a> m () <a href="src/Control-Monad-Journal-Class.html#clear" class="link">Source</a> <a href="#v:clear" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadJournal:MonadJournal:3" class="instance expander" onclick="toggleSection('i:ic:MonadJournal:MonadJournal:3')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m, <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-Journal-Class.html#t:MonadJournal">MonadJournal</a> w m) => <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w (<a href="file:///usr/share/doc/libghc-either-doc/html/Control-Monad-Trans-Either.html#t:EitherT">EitherT</a> e m)</span> <a href="src/Control-Monad-Journal-Class.html#line-101" class="link">Source</a> <a href="#t:MonadJournal" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:MonadJournal:MonadJournal:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:journal">journal</a> :: w -> <a href="file:///usr/share/doc/libghc-either-doc/html/Control-Monad-Trans-Either.html#t:EitherT">EitherT</a> e m () <a href="src/Control-Monad-Journal-Class.html#journal" class="link">Source</a> <a href="#v:journal" class="selflink">#</a></p><p class="src"><a href="#v:history">history</a> :: <a href="file:///usr/share/doc/libghc-either-doc/html/Control-Monad-Trans-Either.html#t:EitherT">EitherT</a> e m w <a href="src/Control-Monad-Journal-Class.html#history" class="link">Source</a> <a href="#v:history" class="selflink">#</a></p><p class="src"><a href="#v:clear">clear</a> :: <a href="file:///usr/share/doc/libghc-either-doc/html/Control-Monad-Trans-Either.html#t:EitherT">EitherT</a> e m () <a href="src/Control-Monad-Journal-Class.html#clear" class="link">Source</a> <a href="#v:clear" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadJournal:MonadJournal:4" class="instance expander" onclick="toggleSection('i:ic:MonadJournal:MonadJournal:4')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m, <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/Data-Monoid.html#t:Monoid">Monoid</a> q, <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w m) => <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> q m)</span> <a href="src/Control-Monad-Journal-Class.html#line-96" class="link">Source</a> <a href="#t:MonadJournal" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:MonadJournal:MonadJournal:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:journal">journal</a> :: w -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> q m () <a href="src/Control-Monad-Journal-Class.html#journal" class="link">Source</a> <a href="#v:journal" class="selflink">#</a></p><p class="src"><a href="#v:history">history</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> q m w <a href="src/Control-Monad-Journal-Class.html#history" class="link">Source</a> <a href="#v:history" class="selflink">#</a></p><p class="src"><a href="#v:clear">clear</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> q m () <a href="src/Control-Monad-Journal-Class.html#clear" class="link">Source</a> <a href="#v:clear" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadJournal:MonadJournal:5" class="instance expander" onclick="toggleSection('i:ic:MonadJournal:MonadJournal:5')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m, <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-Journal-Class.html#t:MonadJournal">MonadJournal</a> w m) => <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w (<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-Journal-Class.html#line-91" class="link">Source</a> <a href="#t:MonadJournal" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:MonadJournal:MonadJournal:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:journal">journal</a> :: w -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m () <a href="src/Control-Monad-Journal-Class.html#journal" class="link">Source</a> <a href="#v:journal" class="selflink">#</a></p><p class="src"><a href="#v:history">history</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m w <a href="src/Control-Monad-Journal-Class.html#history" class="link">Source</a> <a href="#v:history" class="selflink">#</a></p><p class="src"><a href="#v:clear">clear</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m () <a href="src/Control-Monad-Journal-Class.html#clear" class="link">Source</a> <a href="#v:clear" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadJournal:MonadJournal:6" class="instance expander" onclick="toggleSection('i:ic:MonadJournal:MonadJournal:6')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m, <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-Journal-Class.html#t:MonadJournal">MonadJournal</a> w m) => <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</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-Journal-Class.html#line-66" class="link">Source</a> <a href="#t:MonadJournal" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:MonadJournal:MonadJournal:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:journal">journal</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 () <a href="src/Control-Monad-Journal-Class.html#journal" class="link">Source</a> <a href="#v:journal" class="selflink">#</a></p><p class="src"><a href="#v:history">history</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 w <a href="src/Control-Monad-Journal-Class.html#history" class="link">Source</a> <a href="#v:history" class="selflink">#</a></p><p class="src"><a href="#v:clear">clear</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 href="src/Control-Monad-Journal-Class.html#clear" class="link">Source</a> <a href="#v:clear" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadJournal:MonadJournal:7" class="instance expander" onclick="toggleSection('i:ic:MonadJournal:MonadJournal: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) => <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w (<a href="Control-Monad-Trans-Journal.html#t:JournalT">JournalT</a> w m)</span> <a href="src/Control-Monad-Journal-Class.html#line-62" class="link">Source</a> <a href="#t:MonadJournal" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:MonadJournal:MonadJournal:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:journal">journal</a> :: w -> <a href="Control-Monad-Trans-Journal.html#t:JournalT">JournalT</a> w m () <a href="src/Control-Monad-Journal-Class.html#journal" class="link">Source</a> <a href="#v:journal" class="selflink">#</a></p><p class="src"><a href="#v:history">history</a> :: <a href="Control-Monad-Trans-Journal.html#t:JournalT">JournalT</a> w m w <a href="src/Control-Monad-Journal-Class.html#history" class="link">Source</a> <a href="#v:history" class="selflink">#</a></p><p class="src"><a href="#v:clear">clear</a> :: <a href="Control-Monad-Trans-Journal.html#t:JournalT">JournalT</a> w m () <a href="src/Control-Monad-Journal-Class.html#clear" class="link">Source</a> <a href="#v:clear" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadJournal:MonadJournal:8" class="instance expander" onclick="toggleSection('i:ic:MonadJournal:MonadJournal:8')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m, <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-Journal-Class.html#t:MonadJournal">MonadJournal</a> w m) => <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w (<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-Journal-Class.html#line-86" class="link">Source</a> <a href="#t:MonadJournal" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:MonadJournal:MonadJournal:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:journal">journal</a> :: w -> <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 href="src/Control-Monad-Journal-Class.html#journal" class="link">Source</a> <a href="#v:journal" class="selflink">#</a></p><p class="src"><a href="#v:history">history</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 w <a href="src/Control-Monad-Journal-Class.html#history" class="link">Source</a> <a href="#v:history" class="selflink">#</a></p><p class="src"><a href="#v:clear">clear</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 () <a href="src/Control-Monad-Journal-Class.html#clear" class="link">Source</a> <a href="#v:clear" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:MonadJournal:MonadJournal:9" class="instance expander" onclick="toggleSection('i:ic:MonadJournal:MonadJournal:9')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m, <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-Journal-Class.html#t:MonadJournal">MonadJournal</a> w m) => <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w (<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-Journal-Class.html#line-81" class="link">Source</a> <a href="#t:MonadJournal" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:MonadJournal:MonadJournal:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:journal">journal</a> :: w -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m () <a href="src/Control-Monad-Journal-Class.html#journal" class="link">Source</a> <a href="#v:journal" class="selflink">#</a></p><p class="src"><a href="#v:history">history</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m w <a href="src/Control-Monad-Journal-Class.html#history" class="link">Source</a> <a href="#v:history" class="selflink">#</a></p><p class="src"><a href="#v:clear">clear</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m () <a href="src/Control-Monad-Journal-Class.html#clear" class="link">Source</a> <a href="#v:clear" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:sink" class="def">sink</a> :: (<a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w 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) => (w -> <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="src/Control-Monad-Journal-Class.html#sink" class="link">Source</a> <a href="#v:sink" class="selflink">#</a></p><div class="doc"><p>Sink all logs history through <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a></code> then clean it.</p></div></div><div class="top"><p class="src"><a id="v:absorb" class="def">absorb</a> :: <a href="Control-Monad-Journal-Class.html#t:MonadJournal">MonadJournal</a> w m => (a, w) -> m a <a href="src/Control-Monad-Journal-Class.html#absorb" class="link">Source</a> <a href="#v:absorb" class="selflink">#</a></p><div class="doc"><p>Absorb a logs history and pass around the value.</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>
|