/usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Monads.html is in libghc-happstack-server-doc 7.4.6.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | <!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>Happstack.Server.Internal.Monads</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_Happstack-Server-Internal-Monads.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Happstack-Server-Internal-Monads.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">happstack-server-7.4.6.2: Web related tools and services.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Happstack.Server.Internal.Monads</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module defines the Monad stack used by Happstack. You mostly don't want to be looking in here. Look in <a href="Happstack-Server-Monads.html">Happstack.Server.Monads</a> instead.</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">type</span> <a href="#t:Web">Web</a> a = <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><span class="keyword">type</span> <a href="#t:ServerPart">ServerPart</a> a = <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:ServerPartT">ServerPartT</a> m a = <a href="#v:ServerPartT">ServerPartT</a> {<ul class="subs"><li><a href="#v:unServerPartT">unServerPartT</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader.html#t:ReaderT">ReaderT</a> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m) a</li></ul>}</li><li class="src short"><a href="#v:runServerPartT">runServerPartT</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a</li><li class="src short"><a href="#v:withRequest">withRequest</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a</li><li class="src short"><a href="#v:anyRequest">anyRequest</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a</li><li class="src short"><a href="#v:mapServerPartT">mapServerPartT</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> n b) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> n b</li><li class="src short"><a href="#v:mapServerPartT-39-">mapServerPartT'</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> n b) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> n b</li><li class="src short"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="#t:ServerMonad">ServerMonad</a> m <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:smAskRqEnv">smAskRqEnv</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m) => m ([(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Cookie.html#t:Cookie">Cookie</a>)])</li><li class="src short"><a href="#v:smLocalRqEnv">smLocalRqEnv</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m) => (([(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Cookie.html#t:Cookie">Cookie</a>)]) -> ([(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Cookie.html#t:Cookie">Cookie</a>)])) -> m b -> m b</li><li class="src short"><span class="keyword">data</span> <a href="#t:SetAppend">SetAppend</a> a<ul class="subs"><li>= <a href="#v:Set">Set</a> a</li><li>| <a href="#v:Append">Append</a> a</li></ul></li><li class="src short"><a href="#v:extract">extract</a> :: <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> t -> t</li><li class="src short"><span class="keyword">type</span> <a href="#t:FilterFun">FilterFun</a> a = <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Dual">Dual</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Endo">Endo</a> a))</li><li class="src short"><a href="#v:unFilterFun">unFilterFun</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a> a -> a -> a</li><li class="src short"><a href="#v:filterFun">filterFun</a> :: (a -> a) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a> a</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:FilterT">FilterT</a> a m b = <a href="#v:FilterT">FilterT</a> {<ul class="subs"><li><a href="#v:unFilterT">unFilterT</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a> a) m b</li></ul>}</li><li class="src short"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="#t:FilterMonad">FilterMonad</a> a m | m -> a <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:ignoreFilters">ignoreFilters</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a m => m ()</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:WebT">WebT</a> m a = <a href="#v:WebT">WebT</a> {<ul class="subs"><li><a href="#v:unWebT">unWebT</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</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</li></ul>}</li><li class="src short"><span class="keyword">type</span> <a href="#t:UnWebT">UnWebT</a> m a = m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> a, <a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>))</li><li class="src short"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="#t:WebMonad">WebMonad</a> a m | m -> a <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:escape">escape</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m, <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a m) => m a -> m b</li><li class="src short"><a href="#v:escape-39-">escape'</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m, <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a m) => a -> m b</li><li class="src short"><a href="#v:ununWebT">ununWebT</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> m a</li><li class="src short"><a href="#v:mkWebT">mkWebT</a> :: <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a</li><li class="src short"><a href="#v:mapWebT">mapWebT</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> n b) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> n b</li><li class="src short"><a href="#v:localContext">localContext</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m' a) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m' a</li><li class="src short"><a href="#v:multi">multi</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m) => [<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a] -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a</li><li class="src short"><a href="#v:debugFilter">debugFilter</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> a) => <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a</li><li class="src short"><a href="#v:outputTraceMessage">outputTraceMessage</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> a -> a</li><li class="src short"><a href="#v:mkFailMessage">mkFailMessage</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m, <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> m b</li><li class="src short"><a href="#v:failResponse">failResponse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></li><li class="src short"><a href="#v:failHtml">failHtml</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:escapeString">escapeString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Web" class="def">Web</a> a = <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> a <a href="src/Happstack-Server-Internal-Monads.html#Web" class="link">Source</a> <a href="#t:Web" class="selflink">#</a></p><div class="doc"><p>An alias for <code><a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a></code> when using <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a></code>.</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:ServerPart" class="def">ServerPart</a> a = <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> a <a href="src/Happstack-Server-Internal-Monads.html#ServerPart" class="link">Source</a> <a href="#t:ServerPart" class="selflink">#</a></p><div class="doc"><p>An alias for <code><code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a></code></code></p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:ServerPartT" class="def">ServerPartT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#ServerPartT" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></p><div class="doc"><p><code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> is a rich, featureful monad for web development.</p><p>see also: <code>simpleHTTP</code>, <code><a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a></code>, <code><a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a></code>, <code><a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a></code>, and <code>HasRqData</code></p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ServerPartT" class="def">ServerPartT</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:unServerPartT" class="def">unServerPartT</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader.html#t:ReaderT">ReaderT</a> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m) a</dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:ServerPartT" class="caption collapser" onclick="toggleSection('i:ServerPartT')">Instances</p><div id="section.i:ServerPartT" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadTrans:1" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadTrans:1')"></span> <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="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></span> <a href="src/Happstack-Server-Internal-Monads.html#line-182" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadTrans:1" 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.0.0/Control-Monad.html#t:Monad">Monad</a> m => m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:lift" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadTransControl:2" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadTransControl:2')"></span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:MonadTransControl">MonadTransControl</a> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></span> <a href="src/Happstack-Server-Internal-Monads.html#line-86" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadTransControl:2" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) a :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> <a href="#t:StT" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftWith">liftWith</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:Run">Run</a> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> -> m a) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:liftWith" class="selflink">#</a></p><p class="src"><a href="#v:restoreT">restoreT</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => m (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> a) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:restoreT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadBase:3" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadBase:3')"></span> <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> b m => <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> b (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-78" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadBase:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftBase">liftBase</a> :: b α -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m α <a href="#v:liftBase" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadBaseControl:4" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadBaseControl:4')"></span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:MonadBaseControl">MonadBaseControl</a> b m => <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:MonadBaseControl">MonadBaseControl</a> b (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-93" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadBaseControl:4" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) a :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> <a href="#t:StM" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftBaseWith">liftBaseWith</a> :: (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:RunInBase">RunInBase</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m) b -> b a) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:liftBaseWith" class="selflink">#</a></p><p class="src"><a href="#v:restoreM">restoreM</a> :: <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m) a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:restoreM" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadError:5" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadError:5')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:MonadError">MonadError</a> e m) => <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:MonadError">MonadError</a> e (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-202" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadError:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:throwError">throwError</a> :: e -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:throwError" class="selflink">#</a></p><p class="src"><a href="#v:catchError">catchError</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> (e -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:catchError" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadReader:6" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadReader:6')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader-Class.html#t:MonadReader">MonadReader</a> r m) => <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader-Class.html#t:MonadReader">MonadReader</a> r (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-206" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadReader:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:ask">ask</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m r <a href="#v:ask" class="selflink">#</a></p><p class="src"><a href="#v:local">local</a> :: (r -> r) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:local" class="selflink">#</a></p><p class="src"><a href="#v:reader">reader</a> :: (r -> a) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:reader" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadState:7" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadState:7')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Class.html#t:MonadState">MonadState</a> s m) => <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Class.html#t:MonadState">MonadState</a> s (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-210" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadState:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:get">get</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m s <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:put">put</a> :: s -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m () <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:state">state</a> :: (s -> (a, s)) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:state" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadWriter:8" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadWriter:8')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Class.html#t:MonadWriter">MonadWriter</a> w m) => <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Class.html#t:MonadWriter">MonadWriter</a> w (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-197" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT: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) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m () <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m (a, w) <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m (a, w -> w) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:pass" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:WebMonad:9" class="instance expander" onclick="toggleSection('i:id:ServerPartT:WebMonad:9')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-219" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:WebMonad:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:FilterMonad:10" class="instance expander" onclick="toggleSection('i:id:ServerPartT:FilterMonad:10')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-214" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:FilterMonad:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m (b, <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:Monad:11" class="instance expander" onclick="toggleSection('i:id:ServerPartT:Monad:11')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-70" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:Monad:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(>>=)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> (a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(>>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:return" class="selflink">#</a></p><p class="src"><a href="#v:fail">fail</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:fail" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:Functor:12" class="instance expander" onclick="toggleSection('i:id:ServerPartT:Functor:12')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-70" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:Functor:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:Applicative:13" class="instance expander" onclick="toggleSection('i:id:ServerPartT:Applicative:13')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> m) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Applicative.html#t:Applicative">Applicative</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-189" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:Applicative:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(<*>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m (a -> b) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(<*)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:-60--42-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadIO:14" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadIO:14')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-81" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadIO:14" 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.0.0/System-IO.html#t:IO">IO</a> a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:liftIO" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:Alternative:15" class="instance expander" onclick="toggleSection('i:id:ServerPartT:Alternative:15')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Applicative.html#t:Alternative">Alternative</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-193" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:Alternative:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:empty">empty</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:empty" class="selflink">#</a></p><p class="src"><a href="#v:-60--124--62-">(<|>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:-60--124--62-" class="selflink">#</a></p><p class="src"><a href="#v:some">some</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m [a] <a href="#v:some" class="selflink">#</a></p><p class="src"><a href="#v:many">many</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m [a] <a href="#v:many" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadPlus:16" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadPlus:16')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-70" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadPlus:16" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mzero">mzero</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:mzero" class="selflink">#</a></p><p class="src"><a href="#v:mplus">mplus</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:mplus" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadThrow:17" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadThrow:17')"></span> <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadThrow">MonadThrow</a> m => <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadThrow">MonadThrow</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-75" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadThrow:17" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:throwM">throwM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Exception-Base.html#t:Exception">Exception</a> e => e -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:throwM" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:MonadCatch:18" class="instance expander" onclick="toggleSection('i:id:ServerPartT:MonadCatch:18')"></span> <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadCatch">MonadCatch</a> m => <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadCatch">MonadCatch</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-72" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:MonadCatch:18" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:catch">catch</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Exception-Base.html#t:Exception">Exception</a> e => <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> (e -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:catch" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:ServerMonad:19" class="instance expander" onclick="toggleSection('i:id:ServerPartT:ServerMonad:19')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-231" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:ServerMonad:19" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:HasRqData:20" class="instance expander" onclick="toggleSection('i:id:ServerPartT:HasRqData:20')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m) => <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-RqData.html#line-158" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:HasRqData:20" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRqEnv">askRqEnv</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a> <a href="src/Happstack-Server-RqData.html#askRqEnv" class="link">Source</a> <a href="#v:askRqEnv" class="selflink">#</a></p><p class="src"><a href="#v:localRqEnv">localRqEnv</a> :: (<a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a> -> <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="src/Happstack-Server-RqData.html#localRqEnv" class="link">Source</a> <a href="#v:localRqEnv" class="selflink">#</a></p><p class="src"><a href="#v:rqDataError">rqDataError</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="src/Happstack-Server-RqData.html#rqDataError" class="link">Source</a> <a href="#v:rqDataError" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:Happstack:21" class="instance expander" onclick="toggleSection('i:id:ServerPartT:Happstack:21')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m) => <a href="Happstack-Server-Monads.html#t:Happstack">Happstack</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Monads.html#line-63" class="link">Source</a> <a href="#t:Happstack" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:Happstack:21" class="inst-details hide"></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:Monoid:22" class="instance expander" onclick="toggleSection('i:id:ServerPartT:Monoid:22')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-185" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:Monoid:22" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mempty">mempty</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:mempty" class="selflink">#</a></p><p class="src"><a href="#v:mappend">mappend</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:mappend" class="selflink">#</a></p><p class="src"><a href="#v:mconcat">mconcat</a> :: [<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a] -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="#v:mconcat" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:StT:23" class="instance expander" onclick="toggleSection('i:id:ServerPartT:StT:23')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> a</span> <a href="src/Happstack-Server-Internal-Monads.html#line-87" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:StT:23" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> a = <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</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.0.0/Data-Kind.html#t:-42-">*</a> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) a)</div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ServerPartT:StM:24" class="instance expander" onclick="toggleSection('i:id:ServerPartT:StM:24')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m) a</span> <a href="src/Happstack-Server-Internal-Monads.html#line-94" class="link">Source</a> <a href="#t:ServerPartT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ServerPartT:StM:24" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m) a = <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:ComposeSt">ComposeSt</a> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:runServerPartT" class="def">runServerPartT</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#runServerPartT" class="link">Source</a> <a href="#v:runServerPartT" class="selflink">#</a></p><div class="doc"><p>Particularly useful when combined with <code>runWebT</code> to produce
a <code>m (<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a></code> <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code>)</code> from a <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:withRequest" class="def">withRequest</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#withRequest" class="link">Source</a> <a href="#v:withRequest" class="selflink">#</a></p><div class="doc"><p>function for lifting WebT to ServerPartT</p><p>NOTE: This is mostly for internal use. If you want to access the
<code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code> in user-code see <code><a href="Happstack-Server-Internal-Monads.html#v:askRq">askRq</a></code> from <code><a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a></code>.</p><pre>do request <- askRq
...</pre></div></div><div class="top"><p class="src"><a id="v:anyRequest" class="def">anyRequest</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#anyRequest" class="link">Source</a> <a href="#v:anyRequest" class="selflink">#</a></p><div class="doc"><p>A constructor for a <code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> when you don't care about the request.</p><p>NOTE: This is mostly for internal use. If you think you need to use
it in your own code, you might consider asking on the mailing list
or IRC to find out if there is an alternative solution.</p></div></div><div class="top"><p class="src"><a id="v:mapServerPartT" class="def">mapServerPartT</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> n b) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> n b <a href="src/Happstack-Server-Internal-Monads.html#mapServerPartT" class="link">Source</a> <a href="#v:mapServerPartT" class="selflink">#</a></p><div class="doc"><p>Apply a function to transform the inner monad of
<code><code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> m</code>.</p><p>Often used when transforming a monad with <code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code>, since
<code>simpleHTTP</code> requires a <code><code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a></code> a</code>. Refer to <code><a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a></code>
for an explanation of the structure of the monad.</p><p>Here is an example. Suppose you want to embed an <code><a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a></code> into your
<code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> to enable <code><a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#v:throwError">throwError</a></code> and <code><a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#v:catchError">catchError</a></code> in your <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a></code>.</p><pre>type MyServerPartT e m a = ServerPartT (ErrorT e m) a</pre><p>Now suppose you want to pass <code>MyServerPartT</code> into a function that
demands a <code><code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a></code> a</code> (e.g. <code>simpleHTTP</code>). You can
provide the function:</p><pre> unpackErrorT :: (Monad m, Show e) => UnWebT (ErrorT e m) a -> UnWebT m a
unpackErrorT et = do
eitherV <- runErrorT et
return $ case eitherV of
Left err -> Just (Left $ toResponse $
"Catastrophic failure " ++ show err
, filterFun $ \r -> r{rsCode = 500})
Right x -> x</pre><p>With <code>unpackErrorT</code> you can now call <code>simpleHTTP</code>. Just wrap your
<code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> list.</p><pre> simpleHTTP nullConf $ mapServerPartT unpackErrorT (myPart `catchError` myHandler)</pre><p>Or alternatively:</p><pre> simpleHTTP' unpackErrorT nullConf (myPart `catchError` myHandler)</pre><p>Also see <code><a href="Happstack-Server-Error.html#v:spUnwrapErrorT">spUnwrapErrorT</a></code> for a more sophisticated version of this
function.</p></div></div><div class="top"><p class="src"><a id="v:mapServerPartT-39-" class="def">mapServerPartT'</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> n b) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> n b <a href="src/Happstack-Server-Internal-Monads.html#mapServerPartT%27" class="link">Source</a> <a href="#v:mapServerPartT-39-" class="selflink">#</a></p><div class="doc"><p>A variant of <code><a href="Happstack-Server-Internal-Monads.html#v:mapServerPartT">mapServerPartT</a></code> where the first argument also takes
a <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code>. Useful if you want to <code><a href="Happstack-Server-Internal-Monads.html#v:runServerPartT">runServerPartT</a></code> on a different
<code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> inside your monad (see <code>spUnwrapErrorT</code>).</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a id="t:ServerMonad" class="def">ServerMonad</a> m <span class="keyword">where</span> <a href="src/Happstack-Server-Internal-Monads.html#ServerMonad" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></p><div class="doc"><p>The <code><a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a></code> class provides methods for reading or locally
modifying the <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code>. It is essentially a specialized version of
the <code><a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader-Class.html#t:MonadReader">MonadReader</a></code> class. Providing the unique names, <code><a href="Happstack-Server-Internal-Monads.html#v:askRq">askRq</a></code> and
<code><a href="Happstack-Server-Internal-Monads.html#v:localRq">localRq</a></code> makes it easier to use <code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> and <code><a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader.html#t:ReaderT">ReaderT</a></code>
together.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Happstack-Server-Internal-Monads.html#v:askRq">askRq</a>, <a href="Happstack-Server-Internal-Monads.html#v:localRq">localRq</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:askRq" class="def">askRq</a> :: m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a id="v:localRq" class="def">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) -> m a -> m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:ServerMonad" class="caption collapser" onclick="toggleSection('i:ServerMonad')">Instances</p><div id="section.i:ServerMonad" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ServerMonad:ServerMonad:1" class="instance expander" onclick="toggleSection('i:ic:ServerMonad:ServerMonad:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-231" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ServerMonad:ServerMonad:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ServerMonad:ServerMonad:2" class="instance expander" onclick="toggleSection('i:ic:ServerMonad:ServerMonad:2')"></span> <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-796" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ServerMonad:ServerMonad:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ServerMonad:ServerMonad:3" class="instance expander" onclick="toggleSection('i:ic:ServerMonad:ServerMonad:3')"></span> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:Error">Error</a> e, <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m) => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-777" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ServerMonad:ServerMonad:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ServerMonad:ServerMonad:4" class="instance expander" onclick="toggleSection('i:ic:ServerMonad:ServerMonad:4')"></span> <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-687" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ServerMonad:ServerMonad:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ServerMonad:ServerMonad:5" class="instance expander" onclick="toggleSection('i:ic:ServerMonad:ServerMonad:5')"></span> <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-691" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ServerMonad:ServerMonad:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ServerMonad:ServerMonad:6" class="instance expander" onclick="toggleSection('i:ic:ServerMonad:ServerMonad:6')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-717" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ServerMonad:ServerMonad:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ServerMonad:ServerMonad:7" class="instance expander" onclick="toggleSection('i:ic:ServerMonad:ServerMonad:7')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-721" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ServerMonad:ServerMonad:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ServerMonad:ServerMonad:8" class="instance expander" onclick="toggleSection('i:ic:ServerMonad:ServerMonad:8')"></span> <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</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.0.0/Data-Kind.html#t:-42-">*</a> r m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-673" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ServerMonad:ServerMonad:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</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.0.0/Data-Kind.html#t:-42-">*</a> r m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</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.0.0/Data-Kind.html#t:-42-">*</a> r m 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.0.0/Data-Kind.html#t:-42-">*</a> r m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ServerMonad:ServerMonad:9" class="instance expander" onclick="toggleSection('i:ic:ServerMonad:ServerMonad:9')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-747" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ServerMonad:ServerMonad:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</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="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</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 -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:ServerMonad:ServerMonad:10" class="instance expander" onclick="toggleSection('i:ic:ServerMonad:ServerMonad:10')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-751" class="link">Source</a> <a href="#t:ServerMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:ServerMonad:ServerMonad:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRq">askRq</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> <a href="src/Happstack-Server-Internal-Monads.html#askRq" class="link">Source</a> <a href="#v:askRq" class="selflink">#</a></p><p class="src"><a href="#v:localRq">localRq</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Request">Request</a> -> <a href="Happstack-Server-Internal-Types.html#t:Request">Request</a>) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m a <a href="src/Happstack-Server-Internal-Monads.html#localRq" class="link">Source</a> <a href="#v:localRq" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:smAskRqEnv" class="def">smAskRqEnv</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m) => m ([(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Cookie.html#t:Cookie">Cookie</a>)]) <a href="src/Happstack-Server-Internal-Monads.html#smAskRqEnv" class="link">Source</a> <a href="#v:smAskRqEnv" class="selflink">#</a></p><div class="doc"><p>Implementation of <code>askRqEnv</code> for arbitrary <code><a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:smLocalRqEnv" class="def">smLocalRqEnv</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m) => (([(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Cookie.html#t:Cookie">Cookie</a>)]) -> ([(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>)], [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>, <a href="Happstack-Server-Internal-Cookie.html#t:Cookie">Cookie</a>)])) -> m b -> m b <a href="src/Happstack-Server-Internal-Monads.html#smLocalRqEnv" class="link">Source</a> <a href="#v:smLocalRqEnv" class="selflink">#</a></p><div class="doc"><p>Implementation of <code>localRqEnv</code> for arbitrary <code><a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a></code>.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:SetAppend" class="def">SetAppend</a> a <a href="src/Happstack-Server-Internal-Monads.html#SetAppend" class="link">Source</a> <a href="#t:SetAppend" class="selflink">#</a></p><div class="doc"><p>A monoid operation container. If <code>a</code> is a monoid, then
<code><a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a></code> is a monoid with the following behaviors:</p><pre> Set x `mappend` Append y = Set (x `mappend` y)
Append x `mappend` Append y = Append (x `mappend` y)
_ `mappend` Set y = Set y</pre><p>A simple way of summarizing this is, if the right side is <code><a href="Happstack-Server-Internal-Monads.html#v:Append">Append</a></code>,
then the right is appended to the left. If the right side is
<code><a href="Happstack-Server-Internal-Monads.html#v:Set">Set</a></code>, then the left side is ignored.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Set" class="def">Set</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:Append" class="def">Append</a> a</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:SetAppend" class="caption collapser" onclick="toggleSection('i:SetAppend')">Instances</p><div id="section.i:SetAppend" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SetAppend:Functor:1" class="instance expander" onclick="toggleSection('i:id:SetAppend:Functor:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a></span> <a href="src/Happstack-Server-Internal-Monads.html#line-298" class="link">Source</a> <a href="#t:SetAppend" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:SetAppend:Functor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a -> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> b -> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> 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:SetAppend:Eq:2" class="instance expander" onclick="toggleSection('i:id:SetAppend:Eq:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-281" class="link">Source</a> <a href="#t:SetAppend" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:SetAppend:Eq:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a -> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.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="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a -> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.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:SetAppend:Show:3" class="instance expander" onclick="toggleSection('i:id:SetAppend:Show:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> (<a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-281" class="link">Source</a> <a href="#t:SetAppend" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:SetAppend:Show:3" 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.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.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="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.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="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:SetAppend:Monoid:4" class="instance expander" onclick="toggleSection('i:id:SetAppend:Monoid:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> (<a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-283" class="link">Source</a> <a href="#t:SetAppend" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:SetAppend:Monoid:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mempty">mempty</a> :: <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a <a href="#v:mempty" class="selflink">#</a></p><p class="src"><a href="#v:mappend">mappend</a> :: <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a -> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a -> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a <a href="#v:mappend" class="selflink">#</a></p><p class="src"><a href="#v:mconcat">mconcat</a> :: [<a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a] -> <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> a <a href="#v:mconcat" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:extract" class="def">extract</a> :: <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> t -> t <a href="src/Happstack-Server-Internal-Monads.html#extract" class="link">Source</a> <a href="#v:extract" class="selflink">#</a></p><div class="doc"><p>Extract the value from a <code><a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a></code>.
Note that a <code><a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a></code> is actually a <code>CoPointed</code> from:
<a href="http://hackage.haskell.org/packages/archive/category-extras/latest/doc/html/Control-Functor-Pointed.html">http://hackage.haskell.org/packages/archive/category-extras/latest/doc/html/Control-Functor-Pointed.html</a>
But lets not drag in that dependency. yet...</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:FilterFun" class="def">FilterFun</a> a = <a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Dual">Dual</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Endo">Endo</a> a)) <a href="src/Happstack-Server-Internal-Monads.html#FilterFun" class="link">Source</a> <a href="#t:FilterFun" class="selflink">#</a></p><div class="doc"><p><code><a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a></code> is a lot more fun to type than <code><code><a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a></code> (<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Dual">Dual</a></code>
(<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Endo">Endo</a></code> a))</code>.</p></div></div><div class="top"><p class="src"><a id="v:unFilterFun" class="def">unFilterFun</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a> a -> a -> a <a href="src/Happstack-Server-Internal-Monads.html#unFilterFun" class="link">Source</a> <a href="#v:unFilterFun" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:filterFun" class="def">filterFun</a> :: (a -> a) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a> a <a href="src/Happstack-Server-Internal-Monads.html#filterFun" class="link">Source</a> <a href="#v:filterFun" class="selflink">#</a></p><div class="doc"><p>turn a function into a <code><a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a></code>. Primarily used with <code><a href="Happstack-Server-Internal-Monads.html#v:mapServerPartT">mapServerPartT</a></code></p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:FilterT" class="def">FilterT</a> a m b <a href="src/Happstack-Server-Internal-Monads.html#FilterT" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:FilterT" class="def">FilterT</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:unFilterT" class="def">unFilterT</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a> a) m b</dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:FilterT" class="caption collapser" onclick="toggleSection('i:FilterT')">Instances</p><div id="section.i:FilterT" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:MonadBase:1" class="instance expander" onclick="toggleSection('i:id:FilterT:MonadBase:1')"></span> <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> b m => <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> b (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-322" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:MonadBase:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftBase">liftBase</a> :: b α -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m α <a href="#v:liftBase" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:MonadBaseControl:2" class="instance expander" onclick="toggleSection('i:id:FilterT:MonadBaseControl:2')"></span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:MonadBaseControl">MonadBaseControl</a> b m => <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:MonadBaseControl">MonadBaseControl</a> b (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-335" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:MonadBaseControl:2" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) a :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> <a href="#t:StM" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftBaseWith">liftBaseWith</a> :: (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:RunInBase">RunInBase</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m) b -> b a) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:liftBaseWith" class="selflink">#</a></p><p class="src"><a href="#v:restoreM">restoreM</a> :: <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m) a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:restoreM" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:FilterMonad:3" class="instance expander" onclick="toggleSection('i:id:FilterT:FilterMonad:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-378" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:FilterMonad:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (a -> a) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (a -> a) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m (b, a -> a) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:MonadTrans:4" class="instance expander" onclick="toggleSection('i:id:FilterT:MonadTrans:4')"></span> <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="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-314" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:MonadTrans:4" 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.0.0/Control-Monad.html#t:Monad">Monad</a> m => m a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:lift" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:MonadTransControl:5" class="instance expander" onclick="toggleSection('i:id:FilterT:MonadTransControl:5')"></span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:MonadTransControl">MonadTransControl</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-330" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:MonadTransControl:5" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) a :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> <a href="#t:StT" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftWith">liftWith</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:Run">Run</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a) -> m a) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:liftWith" class="selflink">#</a></p><p class="src"><a href="#v:restoreT">restoreT</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => m (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a) a) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:restoreT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:Monad:6" class="instance expander" onclick="toggleSection('i:id:FilterT:Monad:6')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-314" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:Monad:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(>>=)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a -> (a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(>>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:return" class="selflink">#</a></p><p class="src"><a href="#v:fail">fail</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:fail" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:Functor:7" class="instance expander" onclick="toggleSection('i:id:FilterT:Functor:7')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-314" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT: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 -> b) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:Applicative:8" class="instance expander" onclick="toggleSection('i:id:FilterT:Applicative:8')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Applicative.html#t:Applicative">Applicative</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Applicative.html#t:Applicative">Applicative</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-314" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:Applicative:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(<*>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m (a -> b) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(<*)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:-60--42-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:MonadIO:9" class="instance expander" onclick="toggleSection('i:id:FilterT:MonadIO:9')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-325" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:MonadIO:9" 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.0.0/System-IO.html#t:IO">IO</a> a -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:liftIO" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:MonadThrow:10" class="instance expander" onclick="toggleSection('i:id:FilterT:MonadThrow:10')"></span> <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadThrow">MonadThrow</a> m => <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadThrow">MonadThrow</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-319" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:MonadThrow:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:throwM">throwM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Exception-Base.html#t:Exception">Exception</a> e => e -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:throwM" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:MonadCatch:11" class="instance expander" onclick="toggleSection('i:id:FilterT:MonadCatch:11')"></span> <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadCatch">MonadCatch</a> m => <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadCatch">MonadCatch</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-316" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:MonadCatch:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:catch">catch</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Exception-Base.html#t:Exception">Exception</a> e => <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a -> (e -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m a <a href="#v:catch" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:StT:12" class="instance expander" onclick="toggleSection('i:id:FilterT:StT:12')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a) b</span> <a href="src/Happstack-Server-Internal-Monads.html#line-331" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:StT:12" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a) b = <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a> a)) b</div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FilterT:StM:13" class="instance expander" onclick="toggleSection('i:id:FilterT:StM:13')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m) c</span> <a href="src/Happstack-Server-Internal-Monads.html#line-336" class="link">Source</a> <a href="#t:FilterT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FilterT:StM:13" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m) c = <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:ComposeSt">ComposeSt</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a) m c</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a id="t:FilterMonad" class="def">FilterMonad</a> a m | m -> a <span class="keyword">where</span> <a href="src/Happstack-Server-Internal-Monads.html#FilterMonad" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></p><div class="doc"><p>A set of functions for manipulating filters.</p><p><code><a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a></code> implements <code><a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a></code> <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code> so these methods
are the fundamental ways of manipulating <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code> values.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Happstack-Server-Internal-Monads.html#v:setFilter">setFilter</a>, <a href="Happstack-Server-Internal-Monads.html#v:composeFilter">composeFilter</a>, <a href="Happstack-Server-Internal-Monads.html#v:getFilter">getFilter</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:setFilter" class="def">setFilter</a> :: (a -> a) -> m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><div class="doc"><p>Ignores all previous alterations to your filter</p><p>As an example:</p><pre>do
composeFilter f
setFilter g
return "Hello World"</pre><p>The <code><code><a href="Happstack-Server-Internal-Monads.html#v:setFilter">setFilter</a></code> g</code> will cause the first <code><code><a href="Happstack-Server-Internal-Monads.html#v:composeFilter">composeFilter</a></code> f</code> to
be ignored.</p></div><p class="src"><a id="v:composeFilter" class="def">composeFilter</a> :: (a -> a) -> m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><div class="doc"><p>Composes your filter function with the existing filter
function.</p></div><p class="src"><a id="v:getFilter" class="def">getFilter</a> :: m b -> m (b, a -> a) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p><div class="doc"><p>Retrieves the filter from the environment.</p></div></div><div class="subs instances"><p id="control.i:FilterMonad" class="caption collapser" onclick="toggleSection('i:FilterMonad')">Instances</p><div id="section.i:FilterMonad" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:1" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-540" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m (b, <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:2" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-214" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m (b, <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:3" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:3')"></span> <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a m => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-800" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (a -> a) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (a -> a) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m b -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m (b, a -> a) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:4" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:4')"></span> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:Error">Error</a> e, <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a m) => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-781" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (a -> a) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (a -> a) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m b -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m (b, a -> a) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:5" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:5')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-732" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (res -> res) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (res -> res) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m (b, res -> res) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:6" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:6')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-725" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (res -> res) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (res -> res) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m b -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m (b, res -> res) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:7" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:7')"></span> <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res m => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-702" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (res -> res) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (res -> res) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m b -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m (b, res -> res) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:8" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:8')"></span> <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res m => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res (<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/Happstack-Server-Internal-Monads.html#line-695" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (res -> res) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (res -> res) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m b -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m (b, res -> res) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:9" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:9')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-378" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (a -> a) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (a -> a) -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m b -> <a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> a m (b, a -> a) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:10" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:10')"></span> <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res m => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res (<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.0.0/Data-Kind.html#t:-42-">*</a> r m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-677" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (res -> res) -> <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.0.0/Data-Kind.html#t:-42-">*</a> r m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (res -> res) -> <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.0.0/Data-Kind.html#t:-42-">*</a> r m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</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.0.0/Data-Kind.html#t:-42-">*</a> r m b -> <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.0.0/Data-Kind.html#t:-42-">*</a> r m (b, res -> res) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:11" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:11')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-762" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (res -> res) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (res -> res) -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m b -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m (b, res -> res) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FilterMonad:FilterMonad:12" class="instance expander" onclick="toggleSection('i:ic:FilterMonad:FilterMonad:12')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> res (<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/Happstack-Server-Internal-Monads.html#line-755" class="link">Source</a> <a href="#t:FilterMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:FilterMonad:FilterMonad:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (res -> res) -> <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/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (res -> res) -> <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/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m b -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m (b, res -> res) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:ignoreFilters" class="def">ignoreFilters</a> :: <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a m => m () <a href="src/Happstack-Server-Internal-Monads.html#ignoreFilters" class="link">Source</a> <a href="#v:ignoreFilters" class="selflink">#</a></p><div class="doc"><p>Resets all your filters. An alias for <code><code><a href="Happstack-Server-Internal-Monads.html#v:setFilter">setFilter</a></code> <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Function.html#v:id">id</a></code></code>.</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:WebT" class="def">WebT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#WebT" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></p><div class="doc"><p>The basic <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code> building object.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:WebT" class="def">WebT</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:unWebT" class="def">unWebT</a> :: <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</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</dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:WebT" class="caption collapser" onclick="toggleSection('i:WebT')">Instances</p><div id="section.i:WebT" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadTrans:1" class="instance expander" onclick="toggleSection('i:id:WebT:MonadTrans:1')"></span> <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="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a></span> <a href="src/Happstack-Server-Internal-Monads.html#line-526" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadTrans:1" 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.0.0/Control-Monad.html#t:Monad">Monad</a> m => m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:lift" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadTransControl:2" class="instance expander" onclick="toggleSection('i:id:WebT:MonadTransControl:2')"></span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:MonadTransControl">MonadTransControl</a> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a></span> <a href="src/Happstack-Server-Internal-Monads.html#line-401" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadTransControl:2" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) a :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> <a href="#t:StT" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftWith">liftWith</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:Run">Run</a> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> -> m a) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:liftWith" class="selflink">#</a></p><p class="src"><a href="#v:restoreT">restoreT</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => m (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> a) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:restoreT" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadBase:3" class="instance expander" onclick="toggleSection('i:id:WebT:MonadBase:3')"></span> <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> b m => <a href="file:///usr/share/doc/libghc-transformers-base-doc/html/Control-Monad-Base.html#t:MonadBase">MonadBase</a> b (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-393" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadBase:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftBase">liftBase</a> :: b α -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m α <a href="#v:liftBase" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadBaseControl:4" class="instance expander" onclick="toggleSection('i:id:WebT:MonadBaseControl:4')"></span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:MonadBaseControl">MonadBaseControl</a> b m => <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:MonadBaseControl">MonadBaseControl</a> b (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-413" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadBaseControl:4" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) a :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> <a href="#t:StM" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftBaseWith">liftBaseWith</a> :: (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:RunInBase">RunInBase</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m) b -> b a) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:liftBaseWith" class="selflink">#</a></p><p class="src"><a href="#v:restoreM">restoreM</a> :: <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m) a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:restoreM" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadError:5" class="instance expander" onclick="toggleSection('i:id:WebT:MonadError:5')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:MonadError">MonadError</a> e m => <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:MonadError">MonadError</a> e (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-588" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadError:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:throwError">throwError</a> :: e -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:throwError" class="selflink">#</a></p><p class="src"><a href="#v:catchError">catchError</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> (e -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:catchError" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadReader:6" class="instance expander" onclick="toggleSection('i:id:WebT:MonadReader:6')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader-Class.html#t:MonadReader">MonadReader</a> r m => <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader-Class.html#t:MonadReader">MonadReader</a> r (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-580" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadReader:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:ask">ask</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m r <a href="#v:ask" class="selflink">#</a></p><p class="src"><a href="#v:local">local</a> :: (r -> r) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:local" class="selflink">#</a></p><p class="src"><a href="#v:reader">reader</a> :: (r -> a) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:reader" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadState:7" class="instance expander" onclick="toggleSection('i:id:WebT:MonadState:7')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Class.html#t:MonadState">MonadState</a> st m => <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Class.html#t:MonadState">MonadState</a> st (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-584" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadState:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:get">get</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m st <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:put">put</a> :: st -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m () <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:state">state</a> :: (st -> (a, st)) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:state" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadWriter:8" class="instance expander" onclick="toggleSection('i:id:WebT:MonadWriter:8')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Class.html#t:MonadWriter">MonadWriter</a> w m => <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Class.html#t:MonadWriter">MonadWriter</a> w (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-592" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT: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) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:writer" class="selflink">#</a></p><p class="src"><a href="#v:tell">tell</a> :: w -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m () <a href="#v:tell" class="selflink">#</a></p><p class="src"><a href="#v:listen">listen</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m (a, w) <a href="#v:listen" class="selflink">#</a></p><p class="src"><a href="#v:pass">pass</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m (a, w -> w) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:pass" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:WebMonad:9" class="instance expander" onclick="toggleSection('i:id:WebT:WebMonad:9')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-523" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:WebMonad:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:FilterMonad:10" class="instance expander" onclick="toggleSection('i:id:WebT:FilterMonad:10')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-540" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:FilterMonad:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:setFilter">setFilter</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m () <a href="src/Happstack-Server-Internal-Monads.html#setFilter" class="link">Source</a> <a href="#v:setFilter" class="selflink">#</a></p><p class="src"><a href="#v:composeFilter">composeFilter</a> :: (<a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m () <a href="src/Happstack-Server-Internal-Monads.html#composeFilter" class="link">Source</a> <a href="#v:composeFilter" class="selflink">#</a></p><p class="src"><a href="#v:getFilter">getFilter</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m (b, <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) <a href="src/Happstack-Server-Internal-Monads.html#getFilter" class="link">Source</a> <a href="#v:getFilter" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:Monad:11" class="instance expander" onclick="toggleSection('i:id:WebT:Monad:11')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-488" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:Monad:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(>>=)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> (a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(>>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:return" class="selflink">#</a></p><p class="src"><a href="#v:fail">fail</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:fail" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:Functor:12" class="instance expander" onclick="toggleSection('i:id:WebT:Functor:12')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-385" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:Functor:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -> b) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:Applicative:13" class="instance expander" onclick="toggleSection('i:id:WebT:Applicative:13')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> m) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Applicative.html#t:Applicative">Applicative</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-572" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:Applicative:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(<*>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m (a -> b) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(<*)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:-60--42-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadIO:14" class="instance expander" onclick="toggleSection('i:id:WebT:MonadIO:14')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-396" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadIO:14" 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.0.0/System-IO.html#t:IO">IO</a> a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:liftIO" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:Alternative:15" class="instance expander" onclick="toggleSection('i:id:WebT:Alternative:15')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Applicative.html#t:Alternative">Alternative</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-576" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:Alternative:15" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:empty">empty</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:empty" class="selflink">#</a></p><p class="src"><a href="#v:-60--124--62-">(<|>)</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:-60--124--62-" class="selflink">#</a></p><p class="src"><a href="#v:some">some</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m [a] <a href="#v:some" class="selflink">#</a></p><p class="src"><a href="#v:many">many</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m [a] <a href="#v:many" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadPlus:16" class="instance expander" onclick="toggleSection('i:id:WebT:MonadPlus:16')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-529" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadPlus:16" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mzero">mzero</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:mzero" class="selflink">#</a></p><p class="src"><a href="#v:mplus">mplus</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:mplus" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadThrow:17" class="instance expander" onclick="toggleSection('i:id:WebT:MonadThrow:17')"></span> <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadThrow">MonadThrow</a> m => <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadThrow">MonadThrow</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-390" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadThrow:17" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:throwM">throwM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Exception-Base.html#t:Exception">Exception</a> e => e -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:throwM" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:MonadCatch:18" class="instance expander" onclick="toggleSection('i:id:WebT:MonadCatch:18')"></span> <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadCatch">MonadCatch</a> m => <a href="file:///usr/share/doc/libghc-exceptions-doc/html/Control-Monad-Catch.html#t:MonadCatch">MonadCatch</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-387" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:MonadCatch:18" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:catch">catch</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Exception-Base.html#t:Exception">Exception</a> e => <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> (e -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:catch" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:Monoid:19" class="instance expander" onclick="toggleSection('i:id:WebT:Monoid:19')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-548" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:Monoid:19" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mempty">mempty</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:mempty" class="selflink">#</a></p><p class="src"><a href="#v:mappend">mappend</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:mappend" class="selflink">#</a></p><p class="src"><a href="#v:mconcat">mconcat</a> :: [<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a] -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="#v:mconcat" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:StT:20" class="instance expander" onclick="toggleSection('i:id:WebT:StT:20')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> a</span> <a href="src/Happstack-Server-Internal-Monads.html#line-402" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:StT:20" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> a = <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</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> (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> (<a href="Happstack-Server-Internal-Monads.html#t:FilterT">FilterT</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) (<a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StT">StT</a> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>) a))</div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WebT:StM:21" class="instance expander" onclick="toggleSection('i:id:WebT:StM:21')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m) a</span> <a href="src/Happstack-Server-Internal-Monads.html#line-414" class="link">Source</a> <a href="#t:WebT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WebT:StM:21" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:StM">StM</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m) a = <a href="file:///usr/share/doc/libghc-monad-control-doc/html/Control-Monad-Trans-Control.html#t:ComposeSt">ComposeSt</a> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:UnWebT" class="def">UnWebT</a> m a = m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> a, <a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a>)) <a href="src/Happstack-Server-Internal-Monads.html#UnWebT" class="link">Source</a> <a href="#t:UnWebT" class="selflink">#</a></p><div class="doc"><p><code><a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a></code> is almost exclusively used with <code><a href="Happstack-Server-Internal-Monads.html#v:mapServerPartT">mapServerPartT</a></code>. If you
are not using <code><a href="Happstack-Server-Internal-Monads.html#v:mapServerPartT">mapServerPartT</a></code> then you do not need to wrap your
head around this type. If you are -- the type is not as complex as
it first appears.</p><p>It is worth discussing the unpacked structure of <code><a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a></code> a bit as
it's exposed in <code><a href="Happstack-Server-Internal-Monads.html#v:mapServerPartT">mapServerPartT</a></code> and <code><a href="Happstack-Server-Internal-Monads.html#v:mapWebT">mapWebT</a></code>.</p><p>A fully unpacked <code><a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a></code> has a structure that looks like:</p><pre>ununWebT $ WebT m a :: m (Maybe (Either Response a, FilterFun Response))</pre><p>So, ignoring <code>m</code>, as it is just the containing <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a></code>, the
outermost layer is a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a></code>. This is <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#v:mzero">mzero</a></code> was
called or <code><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#v:Just">Just</a></code> (<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a></code> <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code> a, <code><a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a></code> (<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Endo">Endo</a></code>
<code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code>))</code> if <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#v:mzero">mzero</a></code> wasn't called. Inside the <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a></code>, there
is a pair. The second element of the pair is our filter function
<code><code><a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a></code> <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code></code>. <code><code><a href="Happstack-Server-Internal-Monads.html#t:FilterFun">FilterFun</a></code> <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code></code> is a type
alias for <code><code><a href="Happstack-Server-Internal-Monads.html#t:SetAppend">SetAppend</a></code> (<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Dual">Dual</a></code> (<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Endo">Endo</a></code> <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code>))</code>. This is
just a wrapper for a <code><code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code> -> <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code></code> function with a
particular <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a></code> behavior. The value</p><pre> Append (Dual (Endo f))</pre><p>Causes <code>f</code> to be composed with the previous filter.</p><pre> Set (Dual (Endo f))</pre><p>Causes <code>f</code> to not be composed with the previous filter.</p><p>Finally, the first element of the pair is either <code><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#v:Left">Left</a></code>
<code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code></code> or <code><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#v:Right">Right</a></code> a</code>.</p><p>Another way of looking at all these pieces is from the behaviors
they control. The <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a></code> controls the <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#v:mzero">mzero</a></code> behavior. <code><code><a href="Happstack-Server-Internal-Monads.html#v:Set">Set</a></code>
(<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Endo">Endo</a></code> f)</code> comes from the <code><a href="Happstack-Server-Internal-Monads.html#v:setFilter">setFilter</a></code> behavior. Likewise,
<code><code><a href="Happstack-Server-Internal-Monads.html#v:Append">Append</a></code> (<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Endo">Endo</a></code> f)</code> is from <code><a href="Happstack-Server-Internal-Monads.html#v:composeFilter">composeFilter</a></code>. <code><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#v:Left">Left</a></code>
<code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code></code> is what you get when you call <code><a href="Happstack-Server-Internal-Monads.html#v:finishWith">finishWith</a></code> and
<code><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#v:Right">Right</a></code> a</code> is the normal exit.</p><p>An example case statement looks like:</p><pre> ex1 webt = do
val <- ununWebT webt
case val of
Nothing -> Nothing -- this is the interior value when mzero was used
Just (Left r, f) -> Just (Left r, f) -- r is the value that was passed into "finishWith"
-- f is our filter function
Just (Right a, f) -> Just (Right a, f) -- a is our normal monadic value
-- f is still our filter function</pre></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a id="t:WebMonad" class="def">WebMonad</a> a m | m -> a <span class="keyword">where</span> <a href="src/Happstack-Server-Internal-Monads.html#WebMonad" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></p><div class="doc"><p><code><a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a></code> provides a means to end the current computation
and return a <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code> immediately. This provides an
alternate escape route. In particular it has a monadic value
of any type. And unless you call <code><code><a href="Happstack-Server-Internal-Monads.html#v:setFilter">setFilter</a></code> <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Function.html#v:id">id</a></code></code> first your
response filters will be applied normally.</p><p>Extremely useful when you're deep inside a monad and decide
that you want to return a completely different content type,
since it doesn't force you to convert all your return types to
<code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code> early just to accommodate this.</p><p>see also: <code><a href="Happstack-Server-Internal-Monads.html#v:escape">escape</a></code> and <code><a href="Happstack-Server-Internal-Monads.html#v:escape-39-">escape'</a></code></p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Happstack-Server-Internal-Monads.html#v:finishWith">finishWith</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:finishWith" class="def">finishWith</a> :: a -> m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:WebMonad" class="caption collapser" onclick="toggleSection('i:WebMonad')">Instances</p><div id="section.i:WebMonad" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:1" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-523" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:2" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> (<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-219" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:3" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:3')"></span> <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-810" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:4" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:4')"></span> (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:Error">Error</a> e, <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m) => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-791" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:5" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:5')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-742" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:6" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:6')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-739" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:7" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:7')"></span> <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-712" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:8" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:8')"></span> <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-709" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:9" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:9')"></span> <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> 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.0.0/Data-Kind.html#t:-42-">*</a> r m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-682" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: 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.0.0/Data-Kind.html#t:-42-">*</a> r m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:10" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:10')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-772" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:WebMonad:WebMonad:11" class="instance expander" onclick="toggleSection('i:ic:WebMonad:WebMonad:11')"></span> (<a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> w) => <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m)</span> <a href="src/Happstack-Server-Internal-Monads.html#line-769" class="link">Source</a> <a href="#t:WebMonad" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:WebMonad:WebMonad:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:finishWith">finishWith</a> :: a -> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m b <a href="src/Happstack-Server-Internal-Monads.html#finishWith" class="link">Source</a> <a href="#v:finishWith" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:escape" class="def">escape</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m, <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a m) => m a -> m b <a href="src/Happstack-Server-Internal-Monads.html#escape" class="link">Source</a> <a href="#v:escape" class="selflink">#</a></p><div class="doc"><p>Used to ignore all your filters and immediately end the
computation. A combination of <code><a href="Happstack-Server-Internal-Monads.html#v:ignoreFilters">ignoreFilters</a></code> and <code><a href="Happstack-Server-Internal-Monads.html#v:finishWith">finishWith</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:escape-39-" class="def">escape'</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> a m, <a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> a m) => a -> m b <a href="src/Happstack-Server-Internal-Monads.html#escape%27" class="link">Source</a> <a href="#v:escape-39-" class="selflink">#</a></p><div class="doc"><p>An alternate form of <code><a href="Happstack-Server-Internal-Monads.html#v:escape">escape</a></code> that can be easily used within a do
block.</p></div></div><div class="top"><p class="src"><a id="v:ununWebT" class="def">ununWebT</a> :: <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#ununWebT" class="link">Source</a> <a href="#v:ununWebT" class="selflink">#</a></p><div class="doc"><p>For when you really need to unpack a <code><a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a></code> entirely (and not
just unwrap the first layer with <code><a href="Happstack-Server-Internal-Monads.html#v:unWebT">unWebT</a></code>).</p></div></div><div class="top"><p class="src"><a id="v:mkWebT" class="def">mkWebT</a> :: <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#mkWebT" class="link">Source</a> <a href="#v:mkWebT" class="selflink">#</a></p><div class="doc"><p>For wrapping a <code><a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a></code> back up. <code><code><a href="Happstack-Server-Internal-Monads.html#v:mkWebT">mkWebT</a></code> . <code><a href="Happstack-Server-Internal-Monads.html#v:ununWebT">ununWebT</a></code> = <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Function.html#v:id">id</a></code></code></p></div></div><div class="top"><p class="src"><a id="v:mapWebT" class="def">mapWebT</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:UnWebT">UnWebT</a> n b) -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> n b <a href="src/Happstack-Server-Internal-Monads.html#mapWebT" class="link">Source</a> <a href="#v:mapWebT" class="selflink">#</a></p><div class="doc"><p>See <code><a href="Happstack-Server-Internal-Monads.html#v:mapServerPartT">mapServerPartT</a></code> for a discussion of this function.</p></div></div><div class="top"><p class="src"><a id="v:localContext" class="def">localContext</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m => (<a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:WebT">WebT</a> m' a) -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m' a <a href="src/Happstack-Server-Internal-Monads.html#localContext" class="link">Source</a> <a href="#v:localContext" class="selflink">#</a></p><div class="doc"><p>This is kinda like a very oddly shaped <code><a href="Happstack-Server-Internal-Monads.html#v:mapServerPartT">mapServerPartT</a></code> or <code><a href="Happstack-Server-Internal-Monads.html#v:mapWebT">mapWebT</a></code>.
You probably want one or the other of those.</p></div></div><div class="top"><p class="src"><a id="v:multi" class="def">multi</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m) => [<a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a] -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#multi" class="link">Source</a> <a href="#v:multi" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: Use msum instead</p></div><p>Deprecated: use <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#v:msum">msum</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:debugFilter" class="def">debugFilter</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> a) => <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -> <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a <a href="src/Happstack-Server-Internal-Monads.html#debugFilter" class="link">Source</a> <a href="#v:debugFilter" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: This function appears to do nothing.</p></div><p>What is this for, exactly? I don't understand why <code>Show a</code> is
even in the context Deprecated: This function appears to do nothing
at all. If it use it, let us know why.</p></div></div><div class="top"><p class="src"><a id="v:outputTraceMessage" class="def">outputTraceMessage</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> a -> a <a href="src/Happstack-Server-Internal-Monads.html#outputTraceMessage" class="link">Source</a> <a href="#v:outputTraceMessage" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:mkFailMessage" class="def">mkFailMessage</a> :: (<a href="Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m, <a href="Happstack-Server-Internal-Monads.html#t:WebMonad">WebMonad</a> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> m) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> m b <a href="src/Happstack-Server-Internal-Monads.html#mkFailMessage" class="link">Source</a> <a href="#v:mkFailMessage" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:failResponse" class="def">failResponse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="Happstack-Server-Internal-Types.html#t:Response">Response</a> <a href="src/Happstack-Server-Internal-Monads.html#failResponse" class="link">Source</a> <a href="#v:failResponse" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:failHtml" class="def">failHtml</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="src/Happstack-Server-Internal-Monads.html#failHtml" class="link">Source</a> <a href="#v:failHtml" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:escapeString" class="def">escapeString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="src/Happstack-Server-Internal-Monads.html#escapeString" class="link">Source</a> <a href="#v:escapeString" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|