/usr/share/doc/libghc-web-routes-happstack-doc/html/Web-Routes-Happstack.html is in libghc-web-routes-happstack-doc 0.23.10-1build1.
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 | <!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>Web.Routes.Happstack</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Web-Routes-Happstack.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Web-Routes-Happstack.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">web-routes-happstack-0.23.10: Adds support for using web-routes with Happstack</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">Web.Routes.Happstack</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"><a href="#v:implSite">implSite</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m) => <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-Site.html#t:Site">Site</a> url (m a) -> m a</li><li class="src short"><a href="#v:implSite_">implSite_</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m) => <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -> <a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-Site.html#t:Site">Site</a> url (m a) -> m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> a)</li><li class="src short"><a href="#v:seeOtherURL">seeOtherURL</a> :: (<a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-RouteT.html#t:MonadRoute">MonadRoute</a> m, <a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Types.html#t:Response">Response</a> m) => <a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-RouteT.html#t:URL">URL</a> m -> m <a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Types.html#t:Response">Response</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:implSite" class="def">implSite</a> <a href="src/Web-Routes-Happstack.html#implSite" class="link">Source</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.8.2.0/Data-Functor.html#t:Functor">Functor</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>"<a href="http://example.org"">http://example.org"</a></p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>path to this handler, .e.g. "<em>route</em>" or ""</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-Site.html#t:Site">Site</a> url (m a)</td><td class="doc"><p>the <code><a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-Site.html#t:Site">Site</a></code></p></td></tr><tr><td class="src">-> m a</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>convert a <code><a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-Site.html#t:Site">Site</a></code> to a normal Happstack route</p><p>calls <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#v:mzero">mzero</a></code> if the route can be decoded.</p><p>see also: <code><a href="Web-Routes-Happstack.html#v:implSite_">implSite_</a></code></p></div></div><div class="top"><p class="src"><a name="v:implSite_" class="def">implSite_</a> <a href="src/Web-Routes-Happstack.html#implSite_" class="link">Source</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.8.2.0/Data-Functor.html#t:Functor">Functor</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Monads.html#t:ServerMonad">ServerMonad</a> m)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>"<a href="http://example.org"">http://example.org"</a> (or "<a href="http://example.org:80")">http://example.org:80")</a></p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></td><td class="doc"><p>path to this handler, .e.g. "<em>route</em>" or ""</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-Site.html#t:Site">Site</a> url (m a)</td><td class="doc"><p>the <code><a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-Site.html#t:Site">Site</a></code></p></td></tr><tr><td class="src">-> m (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> a)</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>convert a <code><a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-Site.html#t:Site">Site</a></code> to a normal Happstack route</p><p>If url decoding fails, it returns <code>Left "the parse error"</code>,
otherwise <code>Right a</code>.</p><p>see also: <code><a href="Web-Routes-Happstack.html#v:implSite">implSite</a></code></p></div></div><div class="top"><p class="src"><a name="v:seeOtherURL" class="def">seeOtherURL</a> :: (<a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-RouteT.html#t:MonadRoute">MonadRoute</a> m, <a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Monads.html#t:FilterMonad">FilterMonad</a> <a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Types.html#t:Response">Response</a> m) => <a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-RouteT.html#t:URL">URL</a> m -> m <a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Internal-Types.html#t:Response">Response</a> <a href="src/Web-Routes-Happstack.html#seeOtherURL" class="link">Source</a></p><div class="doc"><p>similar to <code><a href="file:///usr/share/doc/libghc-happstack-server-doc/html/Happstack-Server-Response.html#v:seeOther">seeOther</a></code> but takes a <code><a href="file:///usr/share/doc/libghc-web-routes-doc/html/Web-Routes-RouteT.html#t:URL">URL</a></code> <code>m</code> as an argument</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|