/usr/share/doc/libghc-hspec-wai-doc/html/Test-Hspec-Wai-Internal.html is in libghc-hspec-wai-doc 0.8.0-1build7.
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 | <!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>Test.Hspec.Wai.Internal</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Test-Hspec-Wai-Internal.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Test-Hspec-Wai-Internal.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hspec-wai-0.8.0: Experimental Hspec support for testing WAI applications</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>Haskell2010</td></tr></table><p class="caption">Test.Hspec.Wai.Internal</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">type</span> <a href="#t:WaiExpectation">WaiExpectation</a> = <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> ()</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:WaiSession">WaiSession</a> a = <a href="#v:WaiSession">WaiSession</a> {<ul class="subs"><li><a href="#v:unWaiSession">unWaiSession</a> :: <a href="file:///usr/share/doc/libghc-wai-extra-doc/html/Network-Wai-Test-Internal.html#t:Session">Session</a> a</li></ul>}</li><li class="src short"><a href="#v:runWaiSession">runWaiSession</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a -> <a href="file:///usr/share/doc/libghc-wai-doc/html/Network-Wai.html#t:Application">Application</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:withApplication">withApplication</a> :: <a href="file:///usr/share/doc/libghc-wai-doc/html/Network-Wai.html#t:Application">Application</a> -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:getApp">getApp</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> <a href="file:///usr/share/doc/libghc-wai-doc/html/Network-Wai.html#t:Application">Application</a></li><li class="src short"><a href="#v:formatHeader">formatHeader</a> :: <a href="file:///usr/share/doc/libghc-http-types-doc/html/Network-HTTP-Types-Header.html#t:Header">Header</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:WaiExpectation" class="def">WaiExpectation</a> = <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> () <a href="src/Test-Hspec-Wai-Internal.html#WaiExpectation" class="link">Source</a> <a href="#t:WaiExpectation" class="selflink">#</a></p><div class="doc"><p>An expectation in the <code><a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a></code> monad. Failing expectations are
communicated through exceptions (similar to <code><a href="file:///usr/share/doc/libghc-hspec-expectations-doc/html/Test-Hspec-Expectations.html#v:Expectation">Expectation</a></code> and
<code><a href="Test-HUnit-Base.html#v:Assertion">Assertion</a></code>).</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a id="t:WaiSession" class="def">WaiSession</a> a <a href="src/Test-Hspec-Wai-Internal.html#WaiSession" class="link">Source</a> <a href="#t:WaiSession" class="selflink">#</a></p><div class="doc"><p>A <a href="http://www.yesodweb.com/book/web-application-interface">WAI</a> test
session that carries the <code><a href="file:///usr/share/doc/libghc-wai-doc/html/Network-Wai.html#t:Application">Application</a></code> under test and some client state.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:WaiSession" class="def">WaiSession</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:unWaiSession" class="def">unWaiSession</a> :: <a href="file:///usr/share/doc/libghc-wai-extra-doc/html/Network-Wai-Test-Internal.html#t:Session">Session</a> a</dfn><div class="doc empty"> </div></li></ul></div></td></tr></table></div><div class="subs instances"><p id="control.i:WaiSession" class="caption collapser" onclick="toggleSection('i:WaiSession')">Instances</p><div id="section.i:WaiSession" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WaiSession:Monad:1" class="instance expander" onclick="toggleSection('i:id:WaiSession:Monad:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a></span> <a href="src/Test-Hspec-Wai-Internal.html#line-32" class="link">Source</a> <a href="#t:WaiSession" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WaiSession:Monad:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-62--62--61-">(>>=)</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a -> (a -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> b) -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> b <a href="#v:-62--62--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62--62-">(>>)</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> b -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> b <a href="#v:-62--62-" class="selflink">#</a></p><p class="src"><a href="#v:return">return</a> :: a -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</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.1.0/Data-String.html#t:String">String</a> -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</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:WaiSession:Functor:2" class="instance expander" onclick="toggleSection('i:id:WaiSession:Functor:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Functor.html#t:Functor">Functor</a> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a></span> <a href="src/Test-Hspec-Wai-Internal.html#line-32" class="link">Source</a> <a href="#t:WaiSession" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WaiSession: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 -> b) -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(<$)</a> :: a -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> b -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</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:WaiSession:Applicative:3" class="instance expander" onclick="toggleSection('i:id:WaiSession:Applicative:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a></span> <a href="src/Test-Hspec-Wai-Internal.html#line-32" class="link">Source</a> <a href="#t:WaiSession" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WaiSession: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 -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a <a href="#v:pure" class="selflink">#</a></p><p class="src"><a href="#v:-60--42--62-">(<*>)</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> (a -> b) -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> b <a href="#v:-60--42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-42--62-">(*>)</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> b -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> b <a href="#v:-42--62-" class="selflink">#</a></p><p class="src"><a href="#v:-60--42-">(<*)</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> b -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</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:WaiSession:MonadIO:4" class="instance expander" onclick="toggleSection('i:id:WaiSession:MonadIO:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a></span> <a href="src/Test-Hspec-Wai-Internal.html#line-32" class="link">Source</a> <a href="#t:WaiSession" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WaiSession:MonadIO:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:liftIO">liftIO</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a <a href="#v:liftIO" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WaiSession:Example:5" class="instance expander" onclick="toggleSection('i:id:WaiSession:Example:5')"></span> <a href="file:///usr/share/doc/libghc-hspec-core-doc/html/Test-Hspec-Core-Spec.html#t:Example">Example</a> <a href="Test-Hspec-Wai-Internal.html#t:WaiExpectation">WaiExpectation</a></span> <a href="src/Test-Hspec-Wai-Internal.html#line-40" class="link">Source</a> <a href="#t:WaiSession" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WaiSession:Example:5" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-hspec-core-doc/html/Test-Hspec-Core-Spec.html#t:Arg">Arg</a> <a href="Test-Hspec-Wai-Internal.html#t:WaiExpectation">WaiExpectation</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:Arg" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:evaluateExample">evaluateExample</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiExpectation">WaiExpectation</a> -> <a href="file:///usr/share/doc/libghc-hspec-core-doc/html/Test-Hspec-Core-Spec.html#t:Params">Params</a> -> (<a href="file:///usr/share/doc/libghc-hspec-core-doc/html/Test-Hspec-Core-Spec.html#t:ActionWith">ActionWith</a> (<a href="file:///usr/share/doc/libghc-hspec-core-doc/html/Test-Hspec-Core-Spec.html#t:Arg">Arg</a> <a href="Test-Hspec-Wai-Internal.html#t:WaiExpectation">WaiExpectation</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()) -> <a href="file:///usr/share/doc/libghc-hspec-core-doc/html/Test-Hspec-Core-Spec.html#t:ProgressCallback">ProgressCallback</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/libghc-hspec-core-doc/html/Test-Hspec-Core-Spec.html#t:Result">Result</a> <a href="#v:evaluateExample" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WaiSession:Testable:6" class="instance expander" onclick="toggleSection('i:id:WaiSession:Testable:6')"></span> <a href="Test-Hspec-Wai-QuickCheck.html#t:Testable">Testable</a> <a href="Test-Hspec-Wai-Internal.html#t:WaiExpectation">WaiExpectation</a></span> <a href="src/Test-Hspec-Wai-QuickCheck.html#line-33" class="link">Source</a> <a href="#t:Testable" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WaiSession:Testable:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toProperty">toProperty</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiExpectation">WaiExpectation</a> -> <a href="Test-Hspec-Wai-QuickCheck.html#t:WaiProperty">WaiProperty</a> <a href="src/Test-Hspec-Wai-QuickCheck.html#toProperty" class="link">Source</a> <a href="#v:toProperty" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:WaiSession:Arg:7" class="instance expander" onclick="toggleSection('i:id:WaiSession:Arg:7')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-hspec-core-doc/html/Test-Hspec-Core-Spec.html#t:Arg">Arg</a> <a href="Test-Hspec-Wai-Internal.html#t:WaiExpectation">WaiExpectation</a></span> <a href="src/Test-Hspec-Wai-Internal.html#line-41" class="link">Source</a> <a href="#t:WaiSession" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:WaiSession:Arg:7" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-hspec-core-doc/html/Test-Hspec-Core-Spec.html#t:Arg">Arg</a> <a href="Test-Hspec-Wai-Internal.html#t:WaiExpectation">WaiExpectation</a> = <a href="file:///usr/share/doc/libghc-wai-doc/html/Network-Wai.html#t:Application">Application</a></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:runWaiSession" class="def">runWaiSession</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a -> <a href="file:///usr/share/doc/libghc-wai-doc/html/Network-Wai.html#t:Application">Application</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a <a href="src/Test-Hspec-Wai-Internal.html#runWaiSession" class="link">Source</a> <a href="#v:runWaiSession" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withApplication" class="def">withApplication</a> :: <a href="file:///usr/share/doc/libghc-wai-doc/html/Network-Wai.html#t:Application">Application</a> -> <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> a <a href="src/Test-Hspec-Wai-Internal.html#withApplication" class="link">Source</a> <a href="#v:withApplication" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:getApp" class="def">getApp</a> :: <a href="Test-Hspec-Wai-Internal.html#t:WaiSession">WaiSession</a> <a href="file:///usr/share/doc/libghc-wai-doc/html/Network-Wai.html#t:Application">Application</a> <a href="src/Test-Hspec-Wai-Internal.html#getApp" class="link">Source</a> <a href="#v:getApp" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:formatHeader" class="def">formatHeader</a> :: <a href="file:///usr/share/doc/libghc-http-types-doc/html/Network-HTTP-Types-Header.html#t:Header">Header</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Test-Hspec-Wai-Util.html#formatHeader" class="link">Source</a> <a href="#v:formatHeader" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|