This file is indexed.

/usr/share/doc/libghc-hakyll-doc/html/Hakyll-Web-Html.html is in libghc-hakyll-doc 4.4.3.0-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
 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
<!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>Hakyll.Web.Html</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_Hakyll-Web-Html.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Hakyll-Web-Html.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">hakyll-4.4.3.0: A static website compiler library</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">Hakyll.Web.Html</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Generic
</a></li><li><a href="#g:2">Headers
</a></li><li><a href="#g:3">Url manipulation
</a></li><li><a href="#g:4">Stripping/escaping
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Provides utilities to manipulate HTML pages
</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:withTags">withTags</a> :: (<a href="/usr/share/doc/libghc-tagsoup-doc/html/Text-HTML-TagSoup.html#t:Tag">Tag</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/libghc-tagsoup-doc/html/Text-HTML-TagSoup.html#t:Tag">Tag</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <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:demoteHeaders">demoteHeaders</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <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:getUrls">getUrls</a> :: [<a href="/usr/share/doc/libghc-tagsoup-doc/html/Text-HTML-TagSoup.html#t:Tag">Tag</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>] -&gt; [<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:withUrls">withUrls</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <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:toUrl">toUrl</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <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:toSiteRoot">toSiteRoot</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <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:isExternal">isExternal</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <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:stripTags">stripTags</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <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:escapeHtml">escapeHtml</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1 id="g:1">Generic
</h1><div class="top"><p class="src"><a name="v:withTags" class="def">withTags</a> :: (<a href="/usr/share/doc/libghc-tagsoup-doc/html/Text-HTML-TagSoup.html#t:Tag">Tag</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/libghc-tagsoup-doc/html/Text-HTML-TagSoup.html#t:Tag">Tag</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Hakyll-Web-Html.html#withTags" class="link">Source</a></p><div class="doc"><p>Map over all tags in the document
</p></div></div><h1 id="g:2">Headers
</h1><div class="top"><p class="src"><a name="v:demoteHeaders" class="def">demoteHeaders</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Hakyll-Web-Html.html#demoteHeaders" class="link">Source</a></p><div class="doc"><p>Map every <code>h1</code> to an <code>h2</code>, <code>h2</code> to <code>h3</code>, etc.
</p></div></div><h1 id="g:3">Url manipulation
</h1><div class="top"><p class="src"><a name="v:getUrls" class="def">getUrls</a> :: [<a href="/usr/share/doc/libghc-tagsoup-doc/html/Text-HTML-TagSoup.html#t:Tag">Tag</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>] -&gt; [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>]<a href="src/Hakyll-Web-Html.html#getUrls" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:withUrls" class="def">withUrls</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Hakyll-Web-Html.html#withUrls" class="link">Source</a></p><div class="doc"><p>Apply a function to each URL on a webpage
</p></div></div><div class="top"><p class="src"><a name="v:toUrl" class="def">toUrl</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Hakyll-Web-Html.html#toUrl" class="link">Source</a></p><div class="doc"><p>Convert a filepath to an URL starting from the site root
</p><p>Example:
</p><pre> toUrl &quot;foo/bar.html&quot;
</pre><p>Result:
</p><pre> &quot;/foo/bar.html&quot;
</pre><p>This also sanitizes the URL, e.g. converting spaces into '%20'
</p></div></div><div class="top"><p class="src"><a name="v:toSiteRoot" class="def">toSiteRoot</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Hakyll-Web-Html.html#toSiteRoot" class="link">Source</a></p><div class="doc"><p>Get the relative url to the site root, for a given (absolute) url
</p></div></div><div class="top"><p class="src"><a name="v:isExternal" class="def">isExternal</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Hakyll-Web-Html.html#isExternal" class="link">Source</a></p><div class="doc"><p>Check if an URL links to an external HTTP(S) source
</p></div></div><h1 id="g:4">Stripping/escaping
</h1><div class="top"><p class="src"><a name="v:stripTags" class="def">stripTags</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Hakyll-Web-Html.html#stripTags" class="link">Source</a></p><div class="doc"><p>Strip all HTML tags from a string
</p><p>Example:
</p><pre> stripTags &quot;&lt;p&gt;foo&lt;/p&gt;&quot;
</pre><p>Result:
</p><pre> &quot;foo&quot;
</pre><p>This also works for incomplete tags
</p><p>Example:
</p><pre> stripTags &quot;&lt;p&gt;foo&lt;/p&quot;
</pre><p>Result:
</p><pre> &quot;foo&quot;
</pre></div></div><div class="top"><p class="src"><a name="v:escapeHtml" class="def">escapeHtml</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Hakyll-Web-Html.html#escapeHtml" class="link">Source</a></p><div class="doc"><p>HTML-escape a string
</p><p>Example:
</p><pre> escapeHtml &quot;Me &amp; Dean&quot;
</pre><p>Result:
</p><pre> &quot;Me &amp;amp; Dean&quot;
</pre></div></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>