/usr/share/doc/libghc-attoparsec-doc/html/Data-Attoparsec-Internal.html is in libghc-attoparsec-doc 0.13.0.1-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 | <!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 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.0.1: Fast combinator parsing for bytestrings and text</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>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.8.2.0/Data-Eq.html#t:Eq">Eq</a> i, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> r) => <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> i r -> <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> i r -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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 => <a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -> <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -> <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -> (<a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -> <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -> <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -> <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> t r) -> (<a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -> <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -> <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -> <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> t r) -> <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 => <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 => <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 => <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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 => <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 => <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.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 => (<a href="Data-Attoparsec-Internal-Types.html#t:ChunkElem">ChunkElem</a> t -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -> <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></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:compareResults" class="def">compareResults</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> i, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> r) => <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> i r -> <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> i r -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Data-Attoparsec-Internal.html#compareResults" class="link">Source</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.8.2.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.8.2.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 name="v:prompt" class="def">prompt</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t => <a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -> <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -> <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -> (<a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -> <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -> <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -> <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> t r) -> (<a href="Data-Attoparsec-Internal-Types.html#t:State">State</a> t -> <a href="Data-Attoparsec-Internal-Types.html#t:Pos">Pos</a> -> <a href="Data-Attoparsec-Internal-Types.html#t:More">More</a> -> <a href="Data-Attoparsec-Internal-Types.html#t:IResult">IResult</a> t r) -> <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></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 name="v:demandInput" class="def">demandInput</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t => <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t () <a href="src/Data-Attoparsec-Internal.html#demandInput" class="link">Source</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 name="v:demandInput_" class="def">demandInput_</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t => <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></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 name="v:wantInput" class="def">wantInput</a> :: <span class="keyword">forall</span> t. <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t => <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Data-Attoparsec-Internal.html#wantInput" class="link">Source</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.8.2.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.8.2.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 name="v:endOfInput" class="def">endOfInput</a> :: <span class="keyword">forall</span> t. <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t => <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t () <a href="src/Data-Attoparsec-Internal.html#endOfInput" class="link">Source</a></p><div class="doc"><p>Match only if all input has been consumed.</p></div></div><div class="top"><p class="src"><a name="v:atEnd" class="def">atEnd</a> :: <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t => <a href="Data-Attoparsec-Internal-Types.html#t:Parser">Parser</a> t <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Data-Attoparsec-Internal.html#atEnd" class="link">Source</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 name="v:satisfyElem" class="def">satisfyElem</a> :: <span class="keyword">forall</span> t. <a href="Data-Attoparsec-Internal-Types.html#t:Chunk">Chunk</a> t => (<a href="Data-Attoparsec-Internal-Types.html#t:ChunkElem">ChunkElem</a> t -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -> <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></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.8.2.0/Data-Bool.html#v:True">True</a></code>. Returns the element that is
actually parsed.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|