/usr/share/doc/libghc-servant-doc/html/Servant-API-ReqBody.html is in libghc-servant-doc 0.11-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 | <!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>Servant.API.ReqBody</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_Servant-API-ReqBody.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Servant-API-ReqBody.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">servant-0.11: A family of combinators for defining webservices APIs</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Servant.API.ReqBody</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">data</span> <a href="#t:ReqBody">ReqBody</a> contentTypes a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ReqBody" class="def">ReqBody</a> contentTypes a <a href="src/Servant-API-ReqBody.html#ReqBody" class="link">Source</a> <a href="#t:ReqBody" class="selflink">#</a></p><div class="doc"><p>Extract the request body as a value of type <code>a</code>.</p><p>Example:</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>-- POST /books
</code></strong><code class="prompt">>>> </code><strong class="userinput"><code>type MyApi = "books" :> ReqBody '[JSON] Book :> Post '[JSON] Book
</code></strong></pre></div><div class="subs instances"><p id="control.i:ReqBody" class="caption collapser" onclick="toggleSection('i:ReqBody')">Instances</p><div id="section.i:ReqBody" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ReqBody:HasLink:1" class="instance expander" onclick="toggleSection('i:id:ReqBody:HasLink:1')"></span> <a href="Servant-Utils-Links.html#t:HasLink">HasLink</a> k1 sub => <a href="Servant-Utils-Links.html#t:HasLink">HasLink</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="Servant-API-Sub.html#t::-62-">(:>)</a> k1 <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="Servant-API-ReqBody.html#t:ReqBody">ReqBody</a> k ct a) sub)</span> <a href="src/Servant-Utils-Links.html#line-270" class="link">Source</a> <a href="#t:HasLink" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ReqBody:HasLink:1" 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="Servant-Utils-Links.html#t:MkLink">MkLink</a> (<a href="Servant-API-Sub.html#t::-62-">(:>)</a> k1 <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="Servant-API-ReqBody.html#t:ReqBody">ReqBody</a> k ct a) sub) (endpoint :: <a href="Servant-API-Sub.html#t::-62-">(:>)</a> k1 <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="Servant-API-ReqBody.html#t:ReqBody">ReqBody</a> k ct a) sub) :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="src/Servant-Utils-Links.html#MkLink" class="link">Source</a> <a href="#t:MkLink" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toLink">toLink</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Proxy.html#t:Proxy">Proxy</a> ((k1 <a href="Servant-API-Sub.html#t::-62-">:></a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a>) (<a href="Servant-API-ReqBody.html#t:ReqBody">ReqBody</a> k ct a) sub) endpoint -> <a href="Servant-Utils-Links.html#t:Link">Link</a> -> <a href="Servant-Utils-Links.html#t:MkLink">MkLink</a> ((k1 <a href="Servant-API-Sub.html#t::-62-">:></a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a>) (<a href="Servant-API-ReqBody.html#t:ReqBody">ReqBody</a> k ct a) sub) endpoint <a href="src/Servant-Utils-Links.html#toLink" class="link">Source</a> <a href="#v:toLink" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ReqBody:MkLink:2" class="instance expander" onclick="toggleSection('i:id:ReqBody:MkLink:2')"></span> <span class="keyword">type</span> <a href="Servant-Utils-Links.html#t:MkLink">MkLink</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="Servant-API-Sub.html#t::-62-">(:>)</a> k <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="Servant-API-ReqBody.html#t:ReqBody">ReqBody</a> k1 ct a) sub)</span> <a href="src/Servant-Utils-Links.html#line-271" class="link">Source</a> <a href="#t:MkLink" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:ReqBody:MkLink:2" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="Servant-Utils-Links.html#t:MkLink">MkLink</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="Servant-API-Sub.html#t::-62-">(:>)</a> k <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> (<a href="Servant-API-ReqBody.html#t:ReqBody">ReqBody</a> k1 ct a) sub) = <a href="Servant-Utils-Links.html#t:MkLink">MkLink</a> k sub</div></div></td></tr></table></div></div></div><div class="doc"><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>import Servant.API
</code></strong><code class="prompt">>>> </code><strong class="userinput"><code>import Data.Aeson
</code></strong><code class="prompt">>>> </code><strong class="userinput"><code>import Data.Text
</code></strong><code class="prompt">>>> </code><strong class="userinput"><code>data Book
</code></strong><code class="prompt">>>> </code><strong class="userinput"><code>instance ToJSON Book where { toJSON = undefined }
</code></strong></pre></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>
|