This file is indexed.

/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec-ByteString.html is in libghc-parsec3-doc 3.1.11-3build2.

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
<!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>Text.Parsec.ByteString</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_Text-Parsec-ByteString.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-Parsec-ByteString.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">parsec-3.1.11: Monadic parser combinators</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(c) Paolo Martini 2007</td></tr><tr><th>License</th><td>BSD-style (see the LICENSE file)</td></tr><tr><th>Maintainer</th><td>derek.a.elkins@gmail.com</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Text.Parsec.ByteString</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Convinience definitions for working with <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></code>s.</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"><span class="keyword">type</span> <a href="#t:Parser">Parser</a> = <a href="Text-Parsec.html#t:Parsec">Parsec</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> ()</li><li class="src short"><span class="keyword">type</span> <a href="#t:GenParser">GenParser</a> t st = <a href="Text-Parsec.html#t:Parsec">Parsec</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> st</li><li class="src short"><a href="#v:parseFromFile">parseFromFile</a> :: <a href="Text-Parsec-ByteString.html#t:Parser">Parser</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <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/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Parsec-Error.html#t:ParseError">ParseError</a> a)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Parser" class="def">Parser</a> = <a href="Text-Parsec.html#t:Parsec">Parsec</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> () <a href="src/Text-Parsec-ByteString.html#Parser" class="link">Source</a> <a href="#t:Parser" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:GenParser" class="def">GenParser</a> t st = <a href="Text-Parsec.html#t:Parsec">Parsec</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> st <a href="src/Text-Parsec-ByteString.html#GenParser" class="link">Source</a> <a href="#t:GenParser" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:parseFromFile" class="def">parseFromFile</a> :: <a href="Text-Parsec-ByteString.html#t:Parser">Parser</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <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/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Parsec-Error.html#t:ParseError">ParseError</a> a) <a href="src/Text-Parsec-ByteString.html#parseFromFile" class="link">Source</a> <a href="#v:parseFromFile" class="selflink">#</a></p><div class="doc"><p><code>parseFromFile p filePath</code> runs a strict bytestring parser <code>p</code> on the
 input read from <code>filePath</code> using <code><a href="ByteString-Char8.html#v:readFile">readFile</a></code>. Returns either a <code><a href="Text-Parsec-Error.html#t:ParseError">ParseError</a></code>
 (<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#v:Left">Left</a></code>) or a value of type <code>a</code> (<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#v:Right">Right</a></code>).</p><pre> main    = do{ result &lt;- parseFromFile numbers &quot;digits.txt&quot;
             ; case result of
                 Left err  -&gt; print err
                 Right xs  -&gt; print (sum xs)
             }</pre></div></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>