This file is indexed.

/usr/share/doc/libghc-attoparsec-doc/html/Data-Attoparsec-Internal.html is in libghc-attoparsec-doc 0.13.1.0-3build6.

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
<!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>Data.Attoparsec.Internal</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_Data-Attoparsec-Internal.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Attoparsec-Internal.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">attoparsec-0.13.1.0: Fast combinator parsing for bytestrings and text</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>Bryan O'Sullivan 2007-2015</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>bos@serpentine.com</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>unknown</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Attoparsec.Internal</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Simple, efficient parser combinators, loosely based on the Parsec
 library.</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:compareResults">compareResults</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> i, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> r) =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> i r -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> i r -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:prompt">prompt</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -&gt; (<a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> t r) -&gt; (<a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> t r) -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> t r</li><li class="src short"><a href="#v:demandInput">demandInput</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t ()</li><li class="src short"><a href="#v:demandInput_">demandInput_</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t t</li><li class="src short"><a href="#v:wantInput">wantInput</a> :: <span class="keyword">forall</span> t. <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:endOfInput">endOfInput</a> :: <span class="keyword">forall</span> t. <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t ()</li><li class="src short"><a href="#v:atEnd">atEnd</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:satisfyElem">satisfyElem</a> :: <span class="keyword">forall</span> t. <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; (<a href="Data-Attoparsec-Internal-Types.html#t:ChunkElem">ChunkElem</a> t -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t (<a href="Data-Attoparsec-Internal-Types.html#t:ChunkElem">ChunkElem</a> t)</li><li class="src short"><a href="#v:concatReverse">concatReverse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> m =&gt; [m] -&gt; m</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:compareResults" class="def">compareResults</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> i, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> r) =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> i r -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> i r -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Data-Attoparsec-Internal.html#compareResults" class="link">Source</a> <a href="#v:compareResults" class="selflink">#</a></p><div class="doc"><p>Compare two <code><a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a></code> values for equality.</p><p>If both <code><a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a></code>s are <code><a href="Data-Attoparsec-Internal-Types.html#v:Partial">Partial</a></code>, the result will be <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Nothing">Nothing</a></code>, as
 they are incomplete and hence their equality cannot be known.
 (This is why there is no <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a></code> instance for <code><a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a></code>.)</p></div></div><div class="top"><p class="src"><a id="v:prompt" class="def">prompt</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -&gt; (<a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> t r) -&gt; (<a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> t r) -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> t r <a href="src/Data-Attoparsec-Internal.html#prompt" class="link">Source</a> <a href="#v:prompt" class="selflink">#</a></p><div class="doc"><p>Ask for input.  If we receive any, pass the augmented input to a
 success continuation, otherwise to a failure continuation.</p></div></div><div class="top"><p class="src"><a id="v:demandInput" class="def">demandInput</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t () <a href="src/Data-Attoparsec-Internal.html#demandInput" class="link">Source</a> <a href="#v:demandInput" class="selflink">#</a></p><div class="doc"><p>Immediately demand more input via a <code><a href="Data-Attoparsec-Internal-Types.html#v:Partial">Partial</a></code> continuation
 result.</p></div></div><div class="top"><p class="src"><a id="v:demandInput_" class="def">demandInput_</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t t <a href="src/Data-Attoparsec-Internal.html#demandInput_" class="link">Source</a> <a href="#v:demandInput_" class="selflink">#</a></p><div class="doc"><p>Immediately demand more input via a <code><a href="Data-Attoparsec-Internal-Types.html#v:Partial">Partial</a></code> continuation
 result.  Return the new input.</p></div></div><div class="top"><p class="src"><a id="v:wantInput" class="def">wantInput</a> :: <span class="keyword">forall</span> t. <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Data-Attoparsec-Internal.html#wantInput" class="link">Source</a> <a href="#v:wantInput" class="selflink">#</a></p><div class="doc"><p>This parser always succeeds.  It returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:True">True</a></code> if any input is
 available either immediately or on demand, and <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:False">False</a></code> if the end
 of all input has been reached.</p></div></div><div class="top"><p class="src"><a id="v:endOfInput" class="def">endOfInput</a> :: <span class="keyword">forall</span> t. <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t () <a href="src/Data-Attoparsec-Internal.html#endOfInput" class="link">Source</a> <a href="#v:endOfInput" class="selflink">#</a></p><div class="doc"><p>Match only if all input has been consumed.</p></div></div><div class="top"><p class="src"><a id="v:atEnd" class="def">atEnd</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Data-Attoparsec-Internal.html#atEnd" class="link">Source</a> <a href="#v:atEnd" class="selflink">#</a></p><div class="doc"><p>Return an indication of whether the end of input has been
 reached.</p></div></div><div class="top"><p class="src"><a id="v:satisfyElem" class="def">satisfyElem</a> :: <span class="keyword">forall</span> t. <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t =&gt; (<a href="Data-Attoparsec-Internal-Types.html#t:ChunkElem">ChunkElem</a> t -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t (<a href="Data-Attoparsec-Internal-Types.html#t:ChunkElem">ChunkElem</a> t) <a href="src/Data-Attoparsec-Internal.html#satisfyElem" class="link">Source</a> <a href="#v:satisfyElem" class="selflink">#</a></p><div class="doc"><p>The parser <code>satisfyElem p</code> succeeds for any chunk element for which the
 predicate <code>p</code> returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#v:True">True</a></code>. Returns the element that is
 actually parsed.</p></div></div><div class="top"><p class="src"><a id="v:concatReverse" class="def">concatReverse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> m =&gt; [m] -&gt; m <a href="src/Data-Attoparsec-Internal.html#concatReverse" class="link">Source</a> <a href="#v:concatReverse" class="selflink">#</a></p><div class="doc"><p>Concatenate a monoid after reversing its elements.  Used to
 glue together a series of textual chunks that have been accumulated
 &quot;backwards&quot;.</p></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>