This file is indexed.

/usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-RqData.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.RqData</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-RqData.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Happstack-Server-RqData.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.RqData</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Looking up keys</a><ul><li><a href="#g:2">Form Values and Query Parameters</a></li><li><a href="#g:3">Cookies</a></li><li><a href="#g:4">low-level</a></li></ul></li><li><a href="#g:5">Filters</a></li><li><a href="#g:6">Validation and Parsing</a></li><li><a href="#g:7">Handling POST/PUT Requests</a><ul><li><a href="#g:8">Body Policy</a></li></ul></li><li><a href="#g:9">RqData Monad &amp; Error Reporting</a><ul><li><a href="#g:10">Using RqData with ServerMonad</a></li></ul></li><li><a href="#g:11">HasRqData class</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Functions for extracting values from the query string, form data, cookies, etc.</p><p>For in-depth documentation see the following section of the Happstack Crash Course:</p><p><a href="http://happstack.com/docs/crashcourse/RqData.html">http://happstack.com/docs/crashcourse/RqData.html</a></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"><a href="#v:look">look</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <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:looks">looks</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [<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:lookText">lookText</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a></li><li class="src short"><a href="#v:lookText-39-">lookText'</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li><li class="src short"><a href="#v:lookTexts">lookTexts</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a>]</li><li class="src short"><a href="#v:lookTexts-39-">lookTexts'</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>]</li><li class="src short"><a href="#v:lookBS">lookBS</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:lookBSs">lookBSs</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>]</li><li class="src short"><a href="#v:lookRead">lookRead</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-Internal-Types.html#t:FromReqURI">FromReqURI</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m a</li><li class="src short"><a href="#v:lookReads">lookReads</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-Internal-Types.html#t:FromReqURI">FromReqURI</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [a]</li><li class="src short"><a href="#v:lookFile">lookFile</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a>, <a href="Happstack-Server-Internal-Types.html#t:ContentType">ContentType</a>)</li><li class="src short"><a href="#v:lookPairs">lookPairs</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; 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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</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:lookPairsBS">lookPairsBS</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; 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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)]</li><li class="src short"><a href="#v:lookCookie">lookCookie</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <a href="Happstack-Server-Internal-Cookie.html#t:Cookie">Cookie</a></li><li class="src short"><a href="#v:lookCookieValue">lookCookieValue</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <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:readCookieValue">readCookieValue</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-Internal-Types.html#t:FromReqURI">FromReqURI</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m a</li><li class="src short"><a href="#v:lookInput">lookInput</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a></li><li class="src short"><a href="#v:lookInputs">lookInputs</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [<a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>]</li><li class="src short"><a href="#v:body">body</a> :: <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m =&gt; m a -&gt; m a</li><li class="src short"><a href="#v:queryString">queryString</a> :: <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m =&gt; m a -&gt; m a</li><li class="src short"><a href="#v:bytestring">bytestring</a> :: <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m =&gt; m a -&gt; m a</li><li class="src short"><a href="#v:checkRq">checkRq</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; m a -&gt; (a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> b) -&gt; m b</li><li class="src short"><a href="#v:checkRqM">checkRqM</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; m a -&gt; (a -&gt; m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> b)) -&gt; m b</li><li class="src short"><a href="#v:readRq">readRq</a> :: <a href="Happstack-Server-Internal-Types.html#t:FromReqURI">FromReqURI</a> a =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> a</li><li class="src short"><a href="#v:unsafeReadRq">unsafeReadRq</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#t:Read">Read</a> a =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> a</li><li class="src short"><a href="#v:decodeBody">decodeBody</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.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-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) =&gt; <a href="Happstack-Server-RqData.html#t:BodyPolicy">BodyPolicy</a> -&gt; m ()</li><li class="src short"><span class="keyword">data</span> <a href="#t:BodyPolicy">BodyPolicy</a> = <a href="#v:BodyPolicy">BodyPolicy</a> {<ul class="subs"><li><a href="#v:inputWorker">inputWorker</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="Happstack-Server-Internal-Multipart.html#t:InputWorker">InputWorker</a></li><li><a href="#v:maxDisk">maxDisk</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a></li><li><a href="#v:maxRAM">maxRAM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a></li><li><a href="#v:maxHeader">maxHeader</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a></li></ul>}</li><li class="src short"><a href="#v:defaultBodyPolicy">defaultBodyPolicy</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="Happstack-Server-RqData.html#t:BodyPolicy">BodyPolicy</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:RqData">RqData</a> a</li><li class="src short"><a href="#v:mapRqData">mapRqData</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-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 -&gt; <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-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>) b) -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:Errors">Errors</a> a = <a href="#v:Errors">Errors</a> {<ul class="subs"><li><a href="#v:unErrors">unErrors</a> :: [a]</li></ul>}</li><li class="src short"><a href="#v:getDataFn">getDataFn</a> :: (<a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m) =&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>] a)</li><li class="src short"><a href="#v:withDataFn">withDataFn</a> :: (<a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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:ServerMonad">ServerMonad</a> m) =&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; (a -&gt; m r) -&gt; m r</li><li class="src short"><span class="keyword">class</span> <a href="#t:FromData">FromData</a> a <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:getData">getData</a> :: (<a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m, <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> a) =&gt; m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>] a)</li><li class="src short"><a href="#v:withData">withData</a> :: (<a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> a, <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:ServerMonad">ServerMonad</a> m) =&gt; (a -&gt; m r) -&gt; m r</li><li class="src short"><span class="keyword">type</span> <a href="#t:RqEnv">RqEnv</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>)])</li><li class="src short"><span class="keyword">class</span> <a href="#t:HasRqData">HasRqData</a> m <span class="keyword">where</span><ul class="subs"></ul></li></ul></div><div id="interface"><h1 id="g:1">Looking up keys</h1><h2 id="g:2">Form Values and Query Parameters</h2><div class="top"><p class="src"><a id="v:look" class="def">look</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; 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="src/Happstack-Server-RqData.html#look" class="link">Source</a> <a href="#v:look" class="selflink">#</a></p><div class="doc"><p>Gets the first matching named input parameter as a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></code></p><p>Searches the QUERY_STRING followed by the Request body.</p><p>This function assumes the underlying octets are UTF-8 encoded.</p><p>Example:</p><pre>handler :: ServerPart Response
handler =
     do foo &lt;- look &quot;foo&quot;
        ok $ toResponse $ &quot;foo = &quot; ++ foo</pre><p>see also: <code><a href="Happstack-Server-RqData.html#v:looks">looks</a></code>, <code><a href="Happstack-Server-RqData.html#v:lookBS">lookBS</a></code>, and <code><a href="Happstack-Server-RqData.html#v:lookBSs">lookBSs</a></code></p></div></div><div class="top"><p class="src"><a id="v:looks" class="def">looks</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; 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="src/Happstack-Server-RqData.html#looks" class="link">Source</a> <a href="#v:looks" class="selflink">#</a></p><div class="doc"><p>Gets all matches for the named input parameter as <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></code>s</p><p>Searches the QUERY_STRING followed by the Request body.</p><p>This function assumes the underlying octets are UTF-8 encoded.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:look">look</a></code> and <code><a href="Happstack-Server-RqData.html#v:lookBSs">lookBSs</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookText" class="def">lookText</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/Happstack-Server-RqData.html#lookText" class="link">Source</a> <a href="#v:lookText" class="selflink">#</a></p><div class="doc"><p>Gets the first matching named input parameter as a lazy <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code></p><p>Searches the QUERY_STRING followed by the Request body.</p><p>This function assumes the underlying octets are UTF-8 encoded.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookTexts">lookTexts</a></code>, <code><a href="Happstack-Server-RqData.html#v:look">look</a></code>, <code><a href="Happstack-Server-RqData.html#v:looks">looks</a></code>, <code><a href="Happstack-Server-RqData.html#v:lookBS">lookBS</a></code>, and <code><a href="Happstack-Server-RqData.html#v:lookBSs">lookBSs</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookText-39-" class="def">lookText'</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/Happstack-Server-RqData.html#lookText%27" class="link">Source</a> <a href="#v:lookText-39-" class="selflink">#</a></p><div class="doc"><p>Gets the first matching named input parameter as a strict <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code></p><p>Searches the QUERY_STRING followed by the Request body.</p><p>This function assumes the underlying octets are UTF-8 encoded.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookTexts">lookTexts</a></code>, <code><a href="Happstack-Server-RqData.html#v:look">look</a></code>, <code><a href="Happstack-Server-RqData.html#v:looks">looks</a></code>, <code><a href="Happstack-Server-RqData.html#v:lookBS">lookBS</a></code>, and <code><a href="Happstack-Server-RqData.html#v:lookBSs">lookBSs</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookTexts" class="def">lookTexts</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a>] <a href="src/Happstack-Server-RqData.html#lookTexts" class="link">Source</a> <a href="#v:lookTexts" class="selflink">#</a></p><div class="doc"><p>Gets all matches for the named input parameter as lazy <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code>s</p><p>Searches the QUERY_STRING followed by the Request body.</p><p>This function assumes the underlying octets are UTF-8 encoded.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookText">lookText</a></code>, <code><a href="Happstack-Server-RqData.html#v:looks">looks</a></code> and <code><a href="Happstack-Server-RqData.html#v:lookBSs">lookBSs</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookTexts-39-" class="def">lookTexts'</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>] <a href="src/Happstack-Server-RqData.html#lookTexts%27" class="link">Source</a> <a href="#v:lookTexts-39-" class="selflink">#</a></p><div class="doc"><p>Gets all matches for the named input parameter as strict <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code>s</p><p>Searches the QUERY_STRING followed by the Request body.</p><p>This function assumes the underlying octets are UTF-8 encoded.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookText-39-">lookText'</a></code>, <code><a href="Happstack-Server-RqData.html#v:looks">looks</a></code> and <code><a href="Happstack-Server-RqData.html#v:lookBSs">lookBSs</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookBS" class="def">lookBS</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> <a href="src/Happstack-Server-RqData.html#lookBS" class="link">Source</a> <a href="#v:lookBS" class="selflink">#</a></p><div class="doc"><p>Gets the first matching named input parameter as a lazy <code>ByteString</code></p><p>Searches the QUERY_STRING followed by the Request body.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookBSs">lookBSs</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookBSs" class="def">lookBSs</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>] <a href="src/Happstack-Server-RqData.html#lookBSs" class="link">Source</a> <a href="#v:lookBSs" class="selflink">#</a></p><div class="doc"><p>Gets all matches for the named input parameter as lazy <code>ByteString</code>s</p><p>Searches the QUERY_STRING followed by the Request body.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookBS">lookBS</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookRead" class="def">lookRead</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-Internal-Types.html#t:FromReqURI">FromReqURI</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m a <a href="src/Happstack-Server-RqData.html#lookRead" class="link">Source</a> <a href="#v:lookRead" class="selflink">#</a></p><div class="doc"><p>Gets the first matching named input parameter and decodes it using <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#t:Read">Read</a></code></p><p>Searches the QUERY_STRING followed by the Request body.</p><p>This function assumes the underlying octets are UTF-8 encoded.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookReads">lookReads</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookReads" class="def">lookReads</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-Internal-Types.html#t:FromReqURI">FromReqURI</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [a] <a href="src/Happstack-Server-RqData.html#lookReads" class="link">Source</a> <a href="#v:lookReads" class="selflink">#</a></p><div class="doc"><p>Gets all matches for the named input parameter and decodes them using <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#t:Read">Read</a></code></p><p>Searches the QUERY_STRING followed by the Request body.</p><p>This function assumes the underlying octets are UTF-8 encoded.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookReads">lookReads</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookFile" class="def">lookFile</a> <a href="src/Happstack-Server-RqData.html#lookFile" class="link">Source</a> <a href="#v:lookFile" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<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-RqData.html#t:HasRqData">HasRqData</a> m)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>name of input field to search for</p></td></tr><tr><td class="src">-&gt; m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a>, <a href="Happstack-Server-Internal-Types.html#t:ContentType">ContentType</a>)</td><td class="doc"><p>(temporary file location, uploaded file name, content-type)</p></td></tr></table></div><div class="doc"><p>Gets the first matching named file</p><p>Files can only appear in the request body. Additionally, the form
 must set enctype=&quot;multipart/form-data&quot;.</p><p>This function returns a tuple consisting of:</p><ol><li>The temporary location of the uploaded file</li><li>The local filename supplied by the browser</li><li>The content-type supplied by the browser</li></ol><p>If the user does not supply a file in the html form input field,
 the behaviour will depend upon the browser. Most browsers will send
 a 0-length file with an empty file name, so checking that (2) is
 not empty is usually sufficient to ensure the field has been
 filled.</p><p>NOTE: You must move the file from the temporary location before the
 <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code> is sent. The temporary files are automatically removed
 after the <code><a href="Happstack-Server-Internal-Types.html#t:Response">Response</a></code> is sent.</p></div></div><div class="top"><p class="src"><a id="v:lookPairs" class="def">lookPairs</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; 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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</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-RqData.html#lookPairs" class="link">Source</a> <a href="#v:lookPairs" class="selflink">#</a></p><div class="doc"><p>gets all the input parameters, and converts them to a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></code></p><p>The results will contain the QUERY_STRING followed by the Request
 body.</p><p>This function assumes the underlying octets are UTF-8 encoded.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookPairsBS">lookPairsBS</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookPairsBS" class="def">lookPairsBS</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; 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="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)] <a href="src/Happstack-Server-RqData.html#lookPairsBS" class="link">Source</a> <a href="#v:lookPairsBS" class="selflink">#</a></p><div class="doc"><p>gets all the input parameters</p><p>The results will contain the QUERY_STRING followed by the Request
 body.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookPairs">lookPairs</a></code></p></div></div><h2 id="g:3">Cookies</h2><div class="top"><p class="src"><a id="v:lookCookie" class="def">lookCookie</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <a href="Happstack-Server-Internal-Cookie.html#t:Cookie">Cookie</a> <a href="src/Happstack-Server-RqData.html#lookCookie" class="link">Source</a> <a href="#v:lookCookie" class="selflink">#</a></p><div class="doc"><p>Gets the named cookie
 the cookie name is case insensitive</p></div></div><div class="top"><p class="src"><a id="v:lookCookieValue" class="def">lookCookieValue</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; 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="src/Happstack-Server-RqData.html#lookCookieValue" class="link">Source</a> <a href="#v:lookCookieValue" class="selflink">#</a></p><div class="doc"><p>gets the named cookie as a string</p></div></div><div class="top"><p class="src"><a id="v:readCookieValue" class="def">readCookieValue</a> :: (<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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-Internal-Types.html#t:FromReqURI">FromReqURI</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m a <a href="src/Happstack-Server-RqData.html#readCookieValue" class="link">Source</a> <a href="#v:readCookieValue" class="selflink">#</a></p><div class="doc"><p>gets the named cookie as the requested Read type</p></div></div><h2 id="g:4">low-level</h2><div class="top"><p class="src"><a id="v:lookInput" class="def">lookInput</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m <a href="Happstack-Server-Internal-Types.html#t:Input">Input</a> <a href="src/Happstack-Server-RqData.html#lookInput" class="link">Source</a> <a href="#v:lookInput" class="selflink">#</a></p><div class="doc"><p>Gets the first matching named input parameter</p><p>Searches the QUERY_STRING followed by the Request body.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookInputs">lookInputs</a></code></p></div></div><div class="top"><p class="src"><a id="v:lookInputs" class="def">lookInputs</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; m [<a href="Happstack-Server-Internal-Types.html#t:Input">Input</a>] <a href="src/Happstack-Server-RqData.html#lookInputs" class="link">Source</a> <a href="#v:lookInputs" class="selflink">#</a></p><div class="doc"><p>Gets all matches for the named input parameter</p><p>Searches the QUERY_STRING followed by the Request body.</p><p>see also: <code><a href="Happstack-Server-RqData.html#v:lookInput">lookInput</a></code></p></div></div><h1 id="g:5">Filters</h1><div class="top"><p class="src"><a id="v:body" class="def">body</a> :: <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m =&gt; m a -&gt; m a <a href="src/Happstack-Server-RqData.html#body" class="link">Source</a> <a href="#v:body" class="selflink">#</a></p><div class="doc"><p>limit the scope to the Request body</p><pre>handler :: ServerPart Response
handler =
    do foo &lt;- body $ look &quot;foo&quot;
       ok $ toResponse $ &quot;foo = &quot; ++ foo</pre></div></div><div class="top"><p class="src"><a id="v:queryString" class="def">queryString</a> :: <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m =&gt; m a -&gt; m a <a href="src/Happstack-Server-RqData.html#queryString" class="link">Source</a> <a href="#v:queryString" class="selflink">#</a></p><div class="doc"><p>limit the scope to the QUERY_STRING</p><pre>handler :: ServerPart Response
handler =
    do foo &lt;- queryString $ look &quot;foo&quot;
       ok $ toResponse $ &quot;foo = &quot; ++ foo</pre></div></div><div class="top"><p class="src"><a id="v:bytestring" class="def">bytestring</a> :: <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m =&gt; m a -&gt; m a <a href="src/Happstack-Server-RqData.html#bytestring" class="link">Source</a> <a href="#v:bytestring" class="selflink">#</a></p><div class="doc"><p>limit the scope to <code><a href="Happstack-Server-Internal-Types.html#t:Input">Input</a></code>s  which produce a <code>ByteString</code> (aka, not a file)</p></div></div><h1 id="g:6">Validation and Parsing</h1><div class="top"><p class="src"><a id="v:checkRq" class="def">checkRq</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; m a -&gt; (a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> b) -&gt; m b <a href="src/Happstack-Server-RqData.html#checkRq" class="link">Source</a> <a href="#v:checkRq" class="selflink">#</a></p><div class="doc"><p>convert or validate a value</p><p>This is similar to <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#v:fmap">fmap</a></code> except that the function can fail by
 returning Left and an error message. The error will be propagated
 by calling <code><a href="Happstack-Server-RqData.html#v:rqDataError">rqDataError</a></code>.</p><p>This function is useful for a number of things including:</p><ol><li>Parsing a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></code> into another type</li><li>Checking that a value meets some requirements (for example, that is an Int between 1 and 10).</li></ol><p>Example usage at:</p><p><a href="http://happstack.com/docs/crashcourse/RqData.html#rqdatacheckrq">http://happstack.com/docs/crashcourse/RqData.html#rqdatacheckrq</a></p></div></div><div class="top"><p class="src"><a id="v:checkRqM" class="def">checkRqM</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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; m a -&gt; (a -&gt; m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> b)) -&gt; m b <a href="src/Happstack-Server-RqData.html#checkRqM" class="link">Source</a> <a href="#v:checkRqM" class="selflink">#</a></p><div class="doc"><p>like <code><a href="Happstack-Server-RqData.html#v:checkRq">checkRq</a></code> but the check function can be monadic</p></div></div><div class="top"><p class="src"><a id="v:readRq" class="def">readRq</a> <a href="src/Happstack-Server-RqData.html#readRq" class="link">Source</a> <a href="#v:readRq" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Happstack-Server-Internal-Types.html#t:FromReqURI">FromReqURI</a> a</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>name of key (only used for error reporting)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></code> to <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#v:read">read</a></code></p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> a</td><td class="doc"><p><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#v:Left">Left</a></code> on error, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#v:Right">Right</a></code> on success</p></td></tr></table></div><div class="doc"><p>use <code><a href="Happstack-Server-Internal-Types.html#v:fromReqURI">fromReqURI</a></code> to convert a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></code> to a value of type <code>a</code></p><pre>look &quot;key&quot; `checkRq` (readRq &quot;key&quot;)</pre><p>use with <code><a href="Happstack-Server-RqData.html#v:checkRq">checkRq</a></code></p></div></div><div class="top"><p class="src"><a id="v:unsafeReadRq" class="def">unsafeReadRq</a> <a href="src/Happstack-Server-RqData.html#unsafeReadRq" class="link">Source</a> <a href="#v:unsafeReadRq" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#t:Read">Read</a> a</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>name of key (only used for error reporting)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></code> to <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#v:read">read</a></code></p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> a</td><td class="doc"><p><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#v:Left">Left</a></code> on error, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#v:Right">Right</a></code> on success</p></td></tr></table></div><div class="doc"><p>use <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#v:read">read</a></code> to convert a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></code> to a value of type <code>a</code></p><pre>look &quot;key&quot; `checkRq` (unsafeReadRq &quot;key&quot;)</pre><p>use with <code><a href="Happstack-Server-RqData.html#v:checkRq">checkRq</a></code></p><p>NOTE: This function is marked unsafe because some Read instances
 are vulnerable to attacks that attempt to create an out of memory
 condition. For example:</p><pre>read &quot;1e10000000000000&quot; :: Integer</pre><p>see also: <code><a href="Happstack-Server-RqData.html#v:readRq">readRq</a></code></p></div></div><h1 id="g:7">Handling POST/PUT Requests</h1><div class="top"><p class="src"><a id="v:decodeBody" class="def">decodeBody</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.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-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) =&gt; <a href="Happstack-Server-RqData.html#t:BodyPolicy">BodyPolicy</a> -&gt; m () <a href="src/Happstack-Server-RqData.html#decodeBody" class="link">Source</a> <a href="#v:decodeBody" class="selflink">#</a></p><div class="doc"><p>The body of a <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code> is not received or decoded unless
 this function is invoked.</p><p>It is an error to try to use the look functions for a
 <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code> with out first calling this function.</p><p>It is ok to call <code><a href="Happstack-Server-RqData.html#v:decodeBody">decodeBody</a></code> at the beginning of every request:</p><pre>main = simpleHTTP nullConf $
          do decodeBody (defaultBodyPolicy &quot;/tmp/&quot; 4096 4096 4096)
             handlers</pre><p>You can achieve finer granularity quotas by calling <code><a href="Happstack-Server-RqData.html#v:decodeBody">decodeBody</a></code>
 with different values in different handlers.</p><p>Only the first call to <code><a href="Happstack-Server-RqData.html#v:decodeBody">decodeBody</a></code> will have any effect. Calling
 it a second time, even with different quota values, will do
 nothing.</p></div></div><h2 id="g:8">Body Policy</h2><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:BodyPolicy" class="def">BodyPolicy</a> <a href="src/Happstack-Server-Internal-MessageWrap.html#BodyPolicy" class="link">Source</a> <a href="#t:BodyPolicy" class="selflink">#</a></p><div class="doc"><p>see <code><a href="Happstack-Server-RqData.html#v:defaultBodyPolicy">defaultBodyPolicy</a></code></p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:BodyPolicy" class="def">BodyPolicy</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:inputWorker" class="def">inputWorker</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a> -&gt; <a href="Happstack-Server-Internal-Multipart.html#t:InputWorker">InputWorker</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:maxDisk" class="def">maxDisk</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a></dfn><div class="doc"><p>maximum bytes for files uploaded in this <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code></p></div></li><li><dfn class="src"><a id="v:maxRAM" class="def">maxRAM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a></dfn><div class="doc"><p>maximum bytes for all non-file values in the <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code> body</p></div></li><li><dfn class="src"><a id="v:maxHeader" class="def">maxHeader</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a></dfn><div class="doc"><p>maximum bytes of overhead for headers in <code>multipart/form-data</code></p></div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:defaultBodyPolicy" class="def">defaultBodyPolicy</a> <a href="src/Happstack-Server-Internal-MessageWrap.html#defaultBodyPolicy" class="link">Source</a> <a href="#v:defaultBodyPolicy" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a></td><td class="doc"><p>temporary directory for file uploads</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a></td><td class="doc"><p>maximum bytes for files uploaded in this <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code></p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a></td><td class="doc"><p>maximum bytes for all non-file values in the <code><a href="Happstack-Server-Internal-Types.html#t:Request">Request</a></code> body</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int64">Int64</a></td><td class="doc"><p>maximum bytes of overhead for headers in <code>multipart/form-data</code></p></td></tr><tr><td class="src">-&gt; <a href="Happstack-Server-RqData.html#t:BodyPolicy">BodyPolicy</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>create a <code><a href="Happstack-Server-RqData.html#t:BodyPolicy">BodyPolicy</a></code> for use with decodeBody</p></div></div><h1 id="g:9">RqData Monad &amp; Error Reporting</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:RqData" class="def">RqData</a> a <a href="src/Happstack-Server-RqData.html#RqData" class="link">Source</a> <a href="#t:RqData" class="selflink">#</a></p><div class="doc"><p>An applicative functor and monad for looking up key/value pairs
 in the QUERY_STRING, Request body, and cookies.</p></div><div class="subs instances"><p id="control.i:RqData" class="caption collapser" onclick="toggleSection('i:RqData')">Instances</p><div id="section.i:RqData" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:RqData:Monad:1" class="instance expander" onclick="toggleSection('i:id:RqData:Monad:1')"></span> <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-RqData.html#t:RqData">RqData</a></span> <a href="src/Happstack-Server-RqData.html#line-143" class="link">Source</a> <a href="#t:RqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:RqData:Monad:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(&gt;&gt;=)</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; (a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b) -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(&gt;&gt;)</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> 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> -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> 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:RqData:Functor:2" class="instance expander" onclick="toggleSection('i:id:RqData:Functor:2')"></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-RqData.html#t:RqData">RqData</a></span> <a href="src/Happstack-Server-RqData.html#line-143" class="link">Source</a> <a href="#t:RqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:RqData:Functor:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -&gt; b) -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(&lt;$)</a> :: a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</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:RqData:Applicative:3" class="instance expander" onclick="toggleSection('i:id:RqData:Applicative:3')"></span> <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-RqData.html#t:RqData">RqData</a></span> <a href="src/Happstack-Server-RqData.html#line-143" class="link">Source</a> <a href="#t:RqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:RqData:Applicative:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:pure">pure</a> :: a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(&lt;*&gt;)</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> (a -&gt; b) -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*&gt;)</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(&lt;*)</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> 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:RqData:Alternative:4" class="instance expander" onclick="toggleSection('i:id:RqData:Alternative:4')"></span> <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-RqData.html#t:RqData">RqData</a></span> <a href="src/Happstack-Server-RqData.html#line-143" class="link">Source</a> <a href="#t:RqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:RqData:Alternative:4" 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-RqData.html#t:RqData">RqData</a> a <a href="#v:empty" class="selflink">#</a></p><p class="src"><a href="#v:-60--124--62-">(&lt;|&gt;)</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a <a href="#v:-60--124--62-" class="selflink">#</a></p><p class="src"><a href="#v:some">some</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> [a] <a href="#v:some" class="selflink">#</a></p><p class="src"><a href="#v:many">many</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> [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:RqData:MonadPlus:5" class="instance expander" onclick="toggleSection('i:id:RqData:MonadPlus:5')"></span> <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-RqData.html#t:RqData">RqData</a></span> <a href="src/Happstack-Server-RqData.html#line-143" class="link">Source</a> <a href="#t:RqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:RqData:MonadPlus:5" 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-RqData.html#t:RqData">RqData</a> a <a href="#v:mzero" class="selflink">#</a></p><p class="src"><a href="#v:mplus">mplus</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> 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:RqData:HasRqData:6" class="instance expander" onclick="toggleSection('i:id:RqData:HasRqData:6')"></span> <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> <a href="Happstack-Server-RqData.html#t:RqData">RqData</a></span> <a href="src/Happstack-Server-RqData.html#line-152" class="link">Source</a> <a href="#t:RqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:RqData:HasRqData:6" 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-RqData.html#t:RqData">RqData</a> <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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> 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> -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> 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:RqData:MonadReader:7" class="instance expander" onclick="toggleSection('i:id:RqData:MonadReader:7')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader-Class.html#t:MonadReader">MonadReader</a> <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a> <a href="Happstack-Server-RqData.html#t:RqData">RqData</a></span> <a href="src/Happstack-Server-RqData.html#line-143" class="link">Source</a> <a href="#t:RqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:RqData:MonadReader:7" 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-RqData.html#t:RqData">RqData</a> <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a> <a href="#v:ask" class="selflink">#</a></p><p class="src"><a href="#v:local">local</a> :: (<a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a <a href="#v:local" class="selflink">#</a></p><p class="src"><a href="#v:reader">reader</a> :: (<a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a> -&gt; a) -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a <a href="#v:reader" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:mapRqData" class="def">mapRqData</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-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 -&gt; <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-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>) b) -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> b <a href="src/Happstack-Server-RqData.html#mapRqData" class="link">Source</a> <a href="#v:mapRqData" class="selflink">#</a></p><div class="doc"><p>transform the result of 'RqData a'.</p><p>This is similar to <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#v:fmap">fmap</a></code> except it also allows you to modify the
 <code><a href="Happstack-Server-RqData.html#t:Errors">Errors</a></code> not just <code>a</code>.</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:Errors" class="def">Errors</a> a <a href="src/Happstack-Server-RqData.html#Errors" class="link">Source</a> <a href="#t:Errors" class="selflink">#</a></p><div class="doc"><p>a list of errors</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Errors" class="def">Errors</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:unErrors" class="def">unErrors</a> :: [a]</dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:Errors" class="caption collapser" onclick="toggleSection('i:Errors')">Instances</p><div id="section.i:Errors" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Errors:Eq:1" class="instance expander" onclick="toggleSection('i:id:Errors:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; <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-RqData.html#t:Errors">Errors</a> a)</span> <a href="src/Happstack-Server-RqData.html#line-114" class="link">Source</a> <a href="#t:Errors" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Errors:Eq:1" 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-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <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-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <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:Errors:Data:2" class="instance expander" onclick="toggleSection('i:id:Errors:Data:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> a =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a)</span> <a href="src/Happstack-Server-RqData.html#line-114" class="link">Source</a> <a href="#t:Errors" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Errors:Data:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gfoldl">gfoldl</a> :: (<span class="keyword">forall</span> d b. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> d =&gt; c (d -&gt; b) -&gt; d -&gt; c b) -&gt; (<span class="keyword">forall</span> g. g -&gt; c g) -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; c (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a) <a href="#v:gfoldl" class="selflink">#</a></p><p class="src"><a href="#v:gunfold">gunfold</a> :: (<span class="keyword">forall</span> b r. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> b =&gt; c (b -&gt; r) -&gt; c r) -&gt; (<span class="keyword">forall</span> r. r -&gt; c r) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Constr">Constr</a> -&gt; c (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a) <a href="#v:gunfold" class="selflink">#</a></p><p class="src"><a href="#v:toConstr">toConstr</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Constr">Constr</a> <a href="#v:toConstr" class="selflink">#</a></p><p class="src"><a href="#v:dataTypeOf">dataTypeOf</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:DataType">DataType</a> <a href="#v:dataTypeOf" class="selflink">#</a></p><p class="src"><a href="#v:dataCast1">dataCast1</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) t =&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> d =&gt; c (t d)) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (c (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a)) <a href="#v:dataCast1" class="selflink">#</a></p><p class="src"><a href="#v:dataCast2">dataCast2</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) t =&gt; (<span class="keyword">forall</span> d e. (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> d, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> e) =&gt; c (t d e)) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (c (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a)) <a href="#v:dataCast2" class="selflink">#</a></p><p class="src"><a href="#v:gmapT">gmapT</a> :: (<span class="keyword">forall</span> b. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> b =&gt; b -&gt; b) -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a <a href="#v:gmapT" class="selflink">#</a></p><p class="src"><a href="#v:gmapQl">gmapQl</a> :: (r -&gt; r' -&gt; r) -&gt; r -&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; r') -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; r <a href="#v:gmapQl" class="selflink">#</a></p><p class="src"><a href="#v:gmapQr">gmapQr</a> :: (r' -&gt; r -&gt; r) -&gt; r -&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; r') -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; r <a href="#v:gmapQr" class="selflink">#</a></p><p class="src"><a href="#v:gmapQ">gmapQ</a> :: (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; u) -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; [u] <a href="#v:gmapQ" class="selflink">#</a></p><p class="src"><a href="#v:gmapQi">gmapQi</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; u) -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; u <a href="#v:gmapQi" class="selflink">#</a></p><p class="src"><a href="#v:gmapM">gmapM</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; m (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a) <a href="#v:gmapM" class="selflink">#</a></p><p class="src"><a href="#v:gmapMp">gmapMp</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m =&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; m (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a) <a href="#v:gmapMp" class="selflink">#</a></p><p class="src"><a href="#v:gmapMo">gmapMo</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m =&gt; (<span class="keyword">forall</span> d. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Data.html#t:Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; m (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a) <a href="#v:gmapMo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Errors:Ord:3" class="instance expander" onclick="toggleSection('i:id:Errors:Ord:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> a =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a)</span> <a href="src/Happstack-Server-RqData.html#line-114" class="link">Source</a> <a href="#t:Errors" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Errors:Ord:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <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:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <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:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <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:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <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:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Errors:Read:4" class="instance expander" onclick="toggleSection('i:id:Errors:Read:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#t:Read">Read</a> a =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#t:Read">Read</a> (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a)</span> <a href="src/Happstack-Server-RqData.html#line-114" class="link">Source</a> <a href="#t:Errors" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Errors:Read:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a) <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> (<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a) <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Errors:Show:5" class="instance expander" onclick="toggleSection('i:id:Errors:Show:5')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> a =&gt; <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-RqData.html#t:Errors">Errors</a> a)</span> <a href="src/Happstack-Server-RqData.html#line-114" class="link">Source</a> <a href="#t:Errors" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Errors:Show:5" 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> -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <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-RqData.html#t:Errors">Errors</a> a -&gt; <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-RqData.html#t:Errors">Errors</a> a] -&gt; <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:Errors:Monoid:6" class="instance expander" onclick="toggleSection('i:id:Errors:Monoid:6')"></span> <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-RqData.html#t:Errors">Errors</a> a)</span> <a href="src/Happstack-Server-RqData.html#line-116" class="link">Source</a> <a href="#t:Errors" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Errors:Monoid:6" 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-RqData.html#t:Errors">Errors</a> a <a href="#v:mempty" class="selflink">#</a></p><p class="src"><a href="#v:mappend">mappend</a> :: <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a <a href="#v:mappend" class="selflink">#</a></p><p class="src"><a href="#v:mconcat">mconcat</a> :: [<a href="Happstack-Server-RqData.html#t:Errors">Errors</a> a] -&gt; <a href="Happstack-Server-RqData.html#t:Errors">Errors</a> 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:Errors:Error:7" class="instance expander" onclick="toggleSection('i:id:Errors:Error:7')"></span> <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error-Class.html#t:Error">Error</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>)</span> <a href="src/Happstack-Server-RqData.html#line-121" class="link">Source</a> <a href="#t:Errors" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Errors:Error:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:noMsg">noMsg</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="#v:noMsg" class="selflink">#</a></p><p class="src"><a href="#v:strMsg">strMsg</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <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="#v:strMsg" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><h2 id="g:10">Using RqData with ServerMonad</h2><div class="top"><p class="src"><a id="v:getDataFn" class="def">getDataFn</a> <a href="src/Happstack-Server-RqData.html#getDataFn" class="link">Source</a> <a href="#v:getDataFn" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a</td><td class="doc"><p><code><a href="Happstack-Server-RqData.html#t:RqData">RqData</a></code> monad to evaluate</p></td></tr><tr><td class="src">-&gt; m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>] a)</td><td class="doc"><p>return <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#v:Left">Left</a></code> errors or <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</p></td></tr></table></div><div class="doc"><p>run <code><a href="Happstack-Server-RqData.html#t:RqData">RqData</a></code> in a <code><a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a></code>.</p><p>Example: a simple <code>GET</code> or <code>POST</code> variable based authentication
 guard.  It handles the request with <code>errorHandler</code> if
 authentication fails.</p><pre> data AuthCredentials = AuthCredentials { username :: String,  password :: String }

 isValid :: AuthCredentials -&gt; Bool
 isValid = const True

 myRqData :: RqData AuthCredentials
 myRqData = do
    username &lt;- look &quot;username&quot;
    password &lt;- look &quot;password&quot;
    return (AuthCredentials username password)

 checkAuth :: (String -&gt; ServerPart Response) -&gt; ServerPart Response
 checkAuth errorHandler = do
    d &lt;- getDataFn myRqData
    case d of
        (Left e) -&gt; errorHandler (unlines e)
        (Right a) | isValid a -&gt; mzero
        (Right a) | otherwise -&gt; errorHandler &quot;invalid&quot;</pre><p>NOTE: you must call <code><a href="Happstack-Server-RqData.html#v:decodeBody">decodeBody</a></code> prior to calling this function if
 the request method is POST, PUT, PATCH, etc.</p></div></div><div class="top"><p class="src"><a id="v:withDataFn" class="def">withDataFn</a> :: (<a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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:ServerMonad">ServerMonad</a> m) =&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; (a -&gt; m r) -&gt; m r <a href="src/Happstack-Server-RqData.html#withDataFn" class="link">Source</a> <a href="#v:withDataFn" class="selflink">#</a></p><div class="doc"><p>similar to <code><a href="Happstack-Server-RqData.html#v:getDataFn">getDataFn</a></code>, except it calls a sub-handler on success
 or <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#v:mzero">mzero</a></code> on failure.</p><p>NOTE: you must call <code><a href="Happstack-Server-RqData.html#v:decodeBody">decodeBody</a></code> prior to calling this function if
 the request method is POST, PUT, PATCH, etc.</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:FromData" class="def">FromData</a> a <span class="keyword">where</span> <a href="src/Happstack-Server-RqData.html#FromData" class="link">Source</a> <a href="#t:FromData" class="selflink">#</a></p><div class="doc"><p>Used by <code><a href="Happstack-Server-RqData.html#v:withData">withData</a></code> and <code><a href="Happstack-Server-RqData.html#v:getData">getData</a></code>. Make your preferred data
 type an instance of <code><a href="Happstack-Server-RqData.html#t:FromData">FromData</a></code> to use those functions.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Happstack-Server-RqData.html#v:fromData">fromData</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:fromData" class="def">fromData</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a <a href="src/Happstack-Server-RqData.html#fromData" class="link">Source</a> <a href="#v:fromData" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:FromData" class="caption collapser" onclick="toggleSection('i:FromData')">Instances</p><div id="section.i:FromData" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FromData:FromData:1" class="instance expander" onclick="toggleSection('i:ic:FromData:FromData:1')"></span> <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> a =&gt; <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a)</span> <a href="src/Happstack-Server-RqData.html#line-315" class="link">Source</a> <a href="#t:FromData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:FromData:FromData:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromData">fromData</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a) <a href="src/Happstack-Server-RqData.html#fromData" class="link">Source</a> <a href="#v:fromData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FromData:FromData:2" class="instance expander" onclick="toggleSection('i:ic:FromData:FromData:2')"></span> (<a href="Happstack-Server-RqData.html#t:FromData">FromData</a> a, <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> b) =&gt; <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> (a, b)</span> <a href="src/Happstack-Server-RqData.html#line-306" class="link">Source</a> <a href="#t:FromData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:FromData:FromData:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromData">fromData</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> (a, b) <a href="src/Happstack-Server-RqData.html#fromData" class="link">Source</a> <a href="#v:fromData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FromData:FromData:3" class="instance expander" onclick="toggleSection('i:ic:FromData:FromData:3')"></span> (<a href="Happstack-Server-RqData.html#t:FromData">FromData</a> a, <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> b, <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> c) =&gt; <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> (a, b, c)</span> <a href="src/Happstack-Server-RqData.html#line-309" class="link">Source</a> <a href="#t:FromData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:FromData:FromData:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromData">fromData</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> (a, b, c) <a href="src/Happstack-Server-RqData.html#fromData" class="link">Source</a> <a href="#v:fromData" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:FromData:FromData:4" class="instance expander" onclick="toggleSection('i:ic:FromData:FromData:4')"></span> (<a href="Happstack-Server-RqData.html#t:FromData">FromData</a> a, <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> b, <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> c, <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> d) =&gt; <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> (a, b, c, d)</span> <a href="src/Happstack-Server-RqData.html#line-312" class="link">Source</a> <a href="#t:FromData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:FromData:FromData:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromData">fromData</a> :: <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> (a, b, c, d) <a href="src/Happstack-Server-RqData.html#fromData" class="link">Source</a> <a href="#v:fromData" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:getData" class="def">getData</a> :: (<a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m, <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> a) =&gt; m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</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 href="src/Happstack-Server-RqData.html#getData" class="link">Source</a> <a href="#v:getData" class="selflink">#</a></p><div class="doc"><p>A variant of <code><a href="Happstack-Server-RqData.html#v:getDataFn">getDataFn</a></code> that uses <code><a href="Happstack-Server-RqData.html#t:FromData">FromData</a></code> to chose your
 <code><a href="Happstack-Server-RqData.html#t:RqData">RqData</a></code> for you.  The example from <code><a href="Happstack-Server-RqData.html#v:getData">getData</a></code> becomes:</p><pre> data AuthCredentials = AuthCredentials { username :: String,  password :: String }

 isValid :: AuthCredentials -&gt; Bool
 isValid = const True

 myRqData :: RqData AuthCredentials
 myRqData = do
    username &lt;- look &quot;username&quot;
    password &lt;- look &quot;password&quot;
    return (AuthCredentials username password)

 instance FromData AuthCredentials where
    fromData = myRqData

 checkAuth :: (String -&gt; ServerPart Response) -&gt; ServerPart Response
 checkAuth errorHandler = do
    d &lt;- getData
    case d of
        (Left e) -&gt; errorHandler (unlines e)
        (Right a) | isValid a -&gt; mzero
        (Right a) | otherwise -&gt; errorHandler &quot;invalid&quot;</pre><p>NOTE: you must call <code><a href="Happstack-Server-RqData.html#v:decodeBody">decodeBody</a></code> prior to calling this function if
 the request method is POST, PUT, PATCH, etc.</p></div></div><div class="top"><p class="src"><a id="v:withData" class="def">withData</a> :: (<a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m, <a href="Happstack-Server-RqData.html#t:FromData">FromData</a> a, <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:ServerMonad">ServerMonad</a> m) =&gt; (a -&gt; m r) -&gt; m r <a href="src/Happstack-Server-RqData.html#withData" class="link">Source</a> <a href="#v:withData" class="selflink">#</a></p><div class="doc"><p>similar to <code><a href="Happstack-Server-RqData.html#v:getData">getData</a></code> except it calls a subhandler on success or <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad.html#v:mzero">mzero</a></code> on failure.</p><p>NOTE: you must call <code><a href="Happstack-Server-RqData.html#v:decodeBody">decodeBody</a></code> prior to calling this function if
 the request method is POST, PUT, PATCH, etc.</p></div></div><h1 id="g:11">HasRqData class</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:RqEnv" class="def">RqEnv</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>)]) <a href="src/Happstack-Server-RqData.html#RqEnv" class="link">Source</a> <a href="#t:RqEnv" class="selflink">#</a></p><div class="doc"><p>the environment used to lookup query parameters. It consists of
 the triple: (query string inputs, body inputs, cookie inputs)</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:HasRqData" class="def">HasRqData</a> m <span class="keyword">where</span> <a href="src/Happstack-Server-RqData.html#HasRqData" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></p><div class="doc"><p>A class for monads which contain a <code><a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a></code></p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Happstack-Server-RqData.html#v:askRqEnv">askRqEnv</a>, <a href="Happstack-Server-RqData.html#v:localRqEnv">localRqEnv</a>, <a href="Happstack-Server-RqData.html#v:rqDataError">rqDataError</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:askRqEnv" class="def">askRqEnv</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 id="v:localRqEnv" class="def">localRqEnv</a> :: (<a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; m a -&gt; 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 id="v:rqDataError" class="def">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> -&gt; m a <a href="src/Happstack-Server-RqData.html#rqDataError" class="link">Source</a> <a href="#v:rqDataError" class="selflink">#</a></p><div class="doc"><p>lift some <code><a href="Happstack-Server-RqData.html#t:Errors">Errors</a></code> into <code><a href="Happstack-Server-RqData.html#t:RqData">RqData</a></code></p></div></div><div class="subs instances"><p id="control.i:HasRqData" class="caption collapser" onclick="toggleSection('i:HasRqData')">Instances</p><div id="section.i:HasRqData" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:HasRqData:HasRqData:1" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData:1')"></span> <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> <a href="Happstack-Server-RqData.html#t:RqData">RqData</a></span> <a href="src/Happstack-Server-RqData.html#line-152" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:1" 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-RqData.html#t:RqData">RqData</a> <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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> a -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> 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> -&gt; <a href="Happstack-Server-RqData.html#t:RqData">RqData</a> 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:ic:HasRqData:HasRqData:2" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData:2')"></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) =&gt; <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">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:2" 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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="Happstack-Server-Internal-Monads.html#t:ServerPartT">ServerPartT</a> m a -&gt; <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> -&gt; <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:ic:HasRqData:HasRqData:3" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData: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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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-RqData.html#line-207" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRqEnv">askRqEnv</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-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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m a <a href="src/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> -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Except.html#t:ExceptT">ExceptT</a> e m a <a href="src/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:ic:HasRqData:HasRqData:4" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData:4')"></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:Error">Error</a> e, <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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-RqData.html#line-202" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRqEnv">askRqEnv</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-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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m a <a href="src/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> -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Error.html#t:ErrorT">ErrorT</a> e m a <a href="src/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:ic:HasRqData:HasRqData:5" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData: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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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-RqData.html#line-172" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRqEnv">askRqEnv</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-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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m a <a href="src/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> -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Lazy.html#t:StateT">StateT</a> s m a <a href="src/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:ic:HasRqData:HasRqData:6" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData: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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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-RqData.html#line-177" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRqEnv">askRqEnv</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-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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m a <a href="src/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> -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> s m a <a href="src/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:ic:HasRqData:HasRqData:7" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData: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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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) =&gt; <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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-RqData.html#line-182" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRqEnv">askRqEnv</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-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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m a <a href="src/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> -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Lazy.html#t:WriterT">WriterT</a> w m a <a href="src/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:ic:HasRqData:HasRqData:8" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData: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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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) =&gt; <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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-RqData.html#line-187" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRqEnv">askRqEnv</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-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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/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> -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Writer-Strict.html#t:WriterT">WriterT</a> w m a <a href="src/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:ic:HasRqData:HasRqData:9" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData: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-RqData.html#t:HasRqData">HasRqData</a> m) =&gt; <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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> s m)</span> <a href="src/Happstack-Server-RqData.html#line-167" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRqEnv">askRqEnv</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> s 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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader.html#t:ReaderT">ReaderT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> s m a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader.html#t:ReaderT">ReaderT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> s 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> -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader.html#t:ReaderT">ReaderT</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> s 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:ic:HasRqData:HasRqData:10" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData: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-RqData.html#t:HasRqData">HasRqData</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) =&gt; <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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-RqData.html#line-192" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRqEnv">askRqEnv</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-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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m a <a href="src/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> -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Lazy.html#t:RWST">RWST</a> r w s m a <a href="src/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:ic:HasRqData:HasRqData:11" class="instance expander" onclick="toggleSection('i:ic:HasRqData:HasRqData: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="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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) =&gt; <a href="Happstack-Server-RqData.html#t:HasRqData">HasRqData</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-RqData.html#line-197" class="link">Source</a> <a href="#t:HasRqData" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:HasRqData:HasRqData:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:askRqEnv">askRqEnv</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-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> -&gt; <a href="Happstack-Server-RqData.html#t:RqEnv">RqEnv</a>) -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m a -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m a <a href="src/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> -&gt; <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-RWS-Strict.html#t:RWST">RWST</a> r w s m a <a href="src/Happstack-Server-RqData.html#rqDataError" class="link">Source</a> <a href="#v:rqDataError" class="selflink">#</a></p></div></div></td></tr></table></div></div></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>