/usr/share/doc/libghc-cookie-doc/html/Web-Cookie.html is in libghc-cookie-doc 0.4.0.1-3build3.
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 | <!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.Cookie</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-Cookie.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Web-Cookie.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">cookie-0.4.0.1: HTTP cookie parsing and rendering</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Web.Cookie</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Server to client
</a><ul><li><a href="#g:2">Data type
</a></li><li><a href="#g:3">Functions
</a></li></ul></li><li><a href="#g:4">Client to server
</a><ul><li><a href="#g:5">UTF8 Version
</a></li></ul></li><li><a href="#g:6">Expires field
</a></li></ul></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:SetCookie">SetCookie</a> </li><li class="src short"><a href="#v:setCookieName">setCookieName</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:setCookieValue">setCookieValue</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:setCookiePath">setCookiePath</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:setCookieExpires">setCookieExpires</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></li><li class="src short"><a href="#v:setCookieMaxAge">setCookieMaxAge</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:DiffTime">DiffTime</a></li><li class="src short"><a href="#v:setCookieDomain">setCookieDomain</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:setCookieHttpOnly">setCookieHttpOnly</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:setCookieSecure">setCookieSecure</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:parseSetCookie">parseSetCookie</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Web-Cookie.html#t:SetCookie">SetCookie</a></li><li class="src short"><a href="#v:renderSetCookie">renderSetCookie</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder-Internal-Types.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:def">def</a> :: <a href="/usr/share/doc/libghc-data-default-doc/html/Data-Default.html#t:Default">Default</a> a => a</li><li class="src short"><span class="keyword">type</span> <a href="#t:Cookies">Cookies</a> = [(<a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a>)]</li><li class="src short"><a href="#v:parseCookies">parseCookies</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Web-Cookie.html#t:Cookies">Cookies</a></li><li class="src short"><a href="#v:renderCookies">renderCookies</a> :: <a href="Web-Cookie.html#t:Cookies">Cookies</a> -> <a href="/usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder-Internal-Types.html#t:Builder">Builder</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:CookiesText">CookiesText</a> = [(<a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]</li><li class="src short"><a href="#v:parseCookiesText">parseCookiesText</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Web-Cookie.html#t:CookiesText">CookiesText</a></li><li class="src short"><a href="#v:renderCookiesText">renderCookiesText</a> :: <a href="Web-Cookie.html#t:CookiesText">CookiesText</a> -> <a href="/usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder-Internal-Types.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:expiresFormat">expiresFormat</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:formatCookieExpires">formatCookieExpires</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:parseCookieExpires">parseCookieExpires</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></li></ul></div><div id="interface"><h1 id="g:1">Server to client
</h1><h2 id="g:2">Data type
</h2><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SetCookie" class="def">SetCookie</a> <a href="src/Web-Cookie.html#SetCookie" class="link">Source</a></p><div class="subs instances"><p id="control.i:SetCookie" class="caption collapser" onclick="toggleSection('i:SetCookie')">Instances</p><div id="section.i:SetCookie" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Web-Cookie.html#t:SetCookie">SetCookie</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Web-Cookie.html#t:SetCookie">SetCookie</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-data-default-doc/html/Data-Default.html#t:Default">Default</a> <a href="Web-Cookie.html#t:SetCookie">SetCookie</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:setCookieName" class="def">setCookieName</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Web-Cookie.html#setCookieName" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setCookieValue" class="def">setCookieValue</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Web-Cookie.html#setCookieValue" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setCookiePath" class="def">setCookiePath</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Web-Cookie.html#setCookiePath" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setCookieExpires" class="def">setCookieExpires</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a><a href="src/Web-Cookie.html#setCookieExpires" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setCookieMaxAge" class="def">setCookieMaxAge</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:DiffTime">DiffTime</a><a href="src/Web-Cookie.html#setCookieMaxAge" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setCookieDomain" class="def">setCookieDomain</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Web-Cookie.html#setCookieDomain" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setCookieHttpOnly" class="def">setCookieHttpOnly</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Web-Cookie.html#setCookieHttpOnly" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setCookieSecure" class="def">setCookieSecure</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Web-Cookie.html#setCookieSecure" class="link">Source</a></p></div><h2 id="g:3">Functions
</h2><div class="top"><p class="src"><a name="v:parseSetCookie" class="def">parseSetCookie</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Web-Cookie.html#t:SetCookie">SetCookie</a><a href="src/Web-Cookie.html#parseSetCookie" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:renderSetCookie" class="def">renderSetCookie</a> :: <a href="Web-Cookie.html#t:SetCookie">SetCookie</a> -> <a href="/usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder-Internal-Types.html#t:Builder">Builder</a><a href="src/Web-Cookie.html#renderSetCookie" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:def" class="def">def</a> :: <a href="/usr/share/doc/libghc-data-default-doc/html/Data-Default.html#t:Default">Default</a> a => a</p><div class="doc"><p>The default value for this type.
</p></div></div><h1 id="g:4">Client to server
</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Cookies" class="def">Cookies</a> = [(<a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a>)]<a href="src/Web-Cookie.html#Cookies" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parseCookies" class="def">parseCookies</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Web-Cookie.html#t:Cookies">Cookies</a><a href="src/Web-Cookie.html#parseCookies" class="link">Source</a></p><div class="doc"><p>Decode the value of a "Cookie" request header into key/value pairs.
</p></div></div><div class="top"><p class="src"><a name="v:renderCookies" class="def">renderCookies</a> :: <a href="Web-Cookie.html#t:Cookies">Cookies</a> -> <a href="/usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder-Internal-Types.html#t:Builder">Builder</a><a href="src/Web-Cookie.html#renderCookies" class="link">Source</a></p></div><h2 id="g:5">UTF8 Version
</h2><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:CookiesText" class="def">CookiesText</a> = [(<a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]<a href="src/Web-Cookie.html#CookiesText" class="link">Source</a></p><div class="doc"><p>Textual cookies. Functions assume UTF8 encoding.
</p></div></div><div class="top"><p class="src"><a name="v:parseCookiesText" class="def">parseCookiesText</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Web-Cookie.html#t:CookiesText">CookiesText</a><a href="src/Web-Cookie.html#parseCookiesText" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:renderCookiesText" class="def">renderCookiesText</a> :: <a href="Web-Cookie.html#t:CookiesText">CookiesText</a> -> <a href="/usr/share/doc/libghc-blaze-builder-doc/html/Blaze-ByteString-Builder-Internal-Types.html#t:Builder">Builder</a><a href="src/Web-Cookie.html#renderCookiesText" class="link">Source</a></p></div><h1 id="g:6">Expires field
</h1><div class="top"><p class="src"><a name="v:expiresFormat" class="def">expiresFormat</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Web-Cookie.html#expiresFormat" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:formatCookieExpires" class="def">formatCookieExpires</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Web-Cookie.html#formatCookieExpires" class="link">Source</a></p><div class="doc"><p>Format a <code><a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a></code> for a cookie.
</p></div></div><div class="top"><p class="src"><a name="v:parseCookieExpires" class="def">parseCookieExpires</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/time-1.4.0.1/Data-Time-Clock.html#t:UTCTime">UTCTime</a><a href="src/Web-Cookie.html#parseCookieExpires" class="link">Source</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>
|