This file is indexed.

/usr/share/doc/libghc-appar-doc/html/Text-Appar-String.html is in libghc-appar-doc 0.1.4-1.

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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!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.Appar.String</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_Text-Appar-String.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-Appar-String.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">appar-0.1.4: A simple applicative parser</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe-Inferred</td></tr></table><p class="caption">Text.Appar.String</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Documentation
</a><ul><li><a href="#g:2">Parser type
</a></li><li><a href="#g:3">Running parser
</a></li><li><a href="#g:4"><code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></code> parsers
</a></li><li><a href="#g:5"><code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></code> parser
</a></li><li><a href="#g:6">Parser combinators
</a></li><li><a href="#g:7"><code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a></code> parser combinators
</a></li><li><a href="#g:8">Internals
</a></li></ul></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Simple <code>Applicative</code> parser whose input is <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></code>.
The usage is the same as parsec.
</p><p>Parsec 3 provides features which Parsec 2 does not provide:
</p><ul><li> <code>Applicative</code> style
</li><li> <code>ByteString</code> as input
</li></ul><p>But Haskell Platform includes Parsec 2, not Parsec 3. Installing
Parsec 3 to Haskell Platform environment makes it mess. So, this library
was implemented.
</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-Appar-String.html#t:MkParser">MkParser</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:parse">parse</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; inp -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:char">char</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:anyChar">anyChar</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:oneOf">oneOf</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&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="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:noneOf">noneOf</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&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="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:alphaNum">alphaNum</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:digit">digit</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:hexDigit">hexDigit</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:space">space</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:string">string</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&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="Text-Appar-String.html#t:MkParser">MkParser</a> inp <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:try">try</a> ::  <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a</li><li class="src short"><a href="#v:choice">choice</a> ::  [<a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a] -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a</li><li class="src short"><a href="#v:option">option</a> ::  a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a</li><li class="src short"><a href="#v:skipMany">skipMany</a> ::  <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp ()</li><li class="src short"><a href="#v:skipSome">skipSome</a> ::  <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp ()</li><li class="src short"><a href="#v:sepBy1">sepBy1</a> ::  <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp b -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp [a]</li><li class="src short"><a href="#v:manyTill">manyTill</a> ::  <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp b -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp [a]</li><li class="src short"><a href="#v:-60--36--62-">(&lt;$&gt;)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Functor">Functor</a> f =&gt; (a -&gt; b) -&gt; f a -&gt; f b</li><li class="src short"><a href="#v:-60--36-">(&lt;$)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Functor">Functor</a> f =&gt; <span class="keyword">forall</span> a b.  a -&gt; f b -&gt; f a</li><li class="src short"><a href="#v:-60--42--62-">(&lt;*&gt;)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; <span class="keyword">forall</span> a b.  f (a -&gt; b) -&gt; f a -&gt; f b</li><li class="src short"><a href="#v:-42--62-">(*&gt;)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; <span class="keyword">forall</span> a b.  f a -&gt; f b -&gt; f b</li><li class="src short"><a href="#v:-60--42-">(&lt;*)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; <span class="keyword">forall</span> a b.  f a -&gt; f b -&gt; f a</li><li class="src short"><a href="#v:-60--42--42--62-">(&lt;**&gt;)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; f a -&gt; f (a -&gt; b) -&gt; f b</li><li class="src short"><a href="#v:-60--124--62-">(&lt;|&gt;)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Alternative">Alternative</a> f =&gt; <span class="keyword">forall</span> a.  f a -&gt; f a -&gt; f a</li><li class="src short"><a href="#v:some">some</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Alternative">Alternative</a> f =&gt; <span class="keyword">forall</span> a.  f a -&gt; f [a]</li><li class="src short"><a href="#v:many">many</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Alternative">Alternative</a> f =&gt; <span class="keyword">forall</span> a.  f a -&gt; f [a]</li><li class="src short"><a href="#v:pure">pure</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; <span class="keyword">forall</span> a.  a -&gt; f a</li><li class="src short"><span class="keyword">data</span>  <a href="#t:MkParser">MkParser</a> inp a = <a href="#v:P">P</a> {<ul class="subs"><li><a href="#v:runParser">runParser</a> :: inp -&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a, inp)</li></ul>}</li><li class="src short"><span class="keyword">class</span> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> inp =&gt; <a href="#t:Input">Input</a> inp  <span class="keyword">where</span><ul class="subs"><li><a href="#v:car">car</a> :: inp -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li><li><a href="#v:cdr">cdr</a> :: inp -&gt; inp</li><li><a href="#v:nil">nil</a> :: inp</li><li><a href="#v:isNil">isNil</a> :: inp -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li></ul></li><li class="src short"><a href="#v:satisfy">satisfy</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li></ul></div><div id="interface"><h1 id="g:1">Documentation
</h1><h2 id="g:2">Parser type
</h2><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Parser" class="def">Parser</a> = <a href="Text-Appar-String.html#t:MkParser">MkParser</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/Text-Appar-String.html#Parser" class="link">Source</a></p><div class="doc"><p>Parser synonym for <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></code>.
</p></div></div><h2 id="g:3">Running parser
</h2><div class="top"><p class="src"><a name="v:parse" class="def">parse</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; inp -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a<a href="src/Text-Appar-Parser.html#parse" class="link">Source</a></p><div class="doc"><p>Run a parser.
</p></div></div><h2 id="g:4"><code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></code> parsers
</h2><div class="top"><p class="src"><a name="v:char" class="def">char</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Text-Appar-Parser.html#char" class="link">Source</a></p><div class="doc"><p><code>char c</code> parses a single character <code>c</code>. Returns the parsed character.
</p></div></div><div class="top"><p class="src"><a name="v:anyChar" class="def">anyChar</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Text-Appar-Parser.html#anyChar" class="link">Source</a></p><div class="doc"><p>This parser succeeds for any character. Returns the parsed character.
</p></div></div><div class="top"><p class="src"><a name="v:oneOf" class="def">oneOf</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&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="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Text-Appar-Parser.html#oneOf" class="link">Source</a></p><div class="doc"><p><code>oneOf cs</code> succeeds if the current character is in the supplied list of
  characters <code>cs</code>. Returns the parsed character.
</p></div></div><div class="top"><p class="src"><a name="v:noneOf" class="def">noneOf</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&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="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Text-Appar-Parser.html#noneOf" class="link">Source</a></p><div class="doc"><p>As the dual of <code><a href="Text-Appar-String.html#v:oneOf">oneOf</a></code>, <code>noneOf cs</code> succeeds if the current
  character <em>not</em> in the supplied list of characters <code>cs</code>. Returns the
  parsed character.
</p></div></div><div class="top"><p class="src"><a name="v:alphaNum" class="def">alphaNum</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Text-Appar-Parser.html#alphaNum" class="link">Source</a></p><div class="doc"><p>Parses a letter or digit (a character between '0' and '9').
  Returns the parsed character.
</p></div></div><div class="top"><p class="src"><a name="v:digit" class="def">digit</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Text-Appar-Parser.html#digit" class="link">Source</a></p><div class="doc"><p>Parses a digit. Returns the parsed character.
</p></div></div><div class="top"><p class="src"><a name="v:hexDigit" class="def">hexDigit</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Text-Appar-Parser.html#hexDigit" class="link">Source</a></p><div class="doc"><p>Parses a hexadecimal digit (a digit or a letter between 'a' and
  'f' or 'A' and 'F'). Returns the parsed character.
</p></div></div><div class="top"><p class="src"><a name="v:space" class="def">space</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Text-Appar-Parser.html#space" class="link">Source</a></p><div class="doc"><p>Parses a white space character (any character which satisfies <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#v:isSpace">isSpace</a></code>)
   Returns the parsed character.
</p></div></div><h2 id="g:5"><code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></code> parser
</h2><div class="top"><p class="src"><a name="v:string" class="def">string</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&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="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Text-Appar-Parser.html#string" class="link">Source</a></p><div class="doc"><p><code>string s</code> parses a sequence of characters given by <code>s</code>. Returns
  the parsed string
</p></div></div><h2 id="g:6">Parser combinators
</h2><div class="top"><p class="src"><a name="v:try" class="def">try</a> ::  <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a<a href="src/Text-Appar-Parser.html#try" class="link">Source</a></p><div class="doc"><p>The parser try p behaves like parser p, except that it pretends
  that it hasn't consumed any input when an error occurs.
</p></div></div><div class="top"><p class="src"><a name="v:choice" class="def">choice</a> ::  [<a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a] -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a<a href="src/Text-Appar-Parser.html#choice" class="link">Source</a></p><div class="doc"><p><code>choice ps</code> tries to apply the parsers in the list <code>ps</code> in order,
  until one of them succeeds. Returns the value of the succeeding
  parser.
</p></div></div><div class="top"><p class="src"><a name="v:option" class="def">option</a> ::  a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a<a href="src/Text-Appar-Parser.html#option" class="link">Source</a></p><div class="doc"><p><code>option x p</code> tries to apply parser <code>p</code>. If <code>p</code> fails without
  consuming input, it returns the value <code>x</code>, otherwise the value
  returned by <code>p</code>.
</p></div></div><div class="top"><p class="src"><a name="v:skipMany" class="def">skipMany</a> ::  <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp ()<a href="src/Text-Appar-Parser.html#skipMany" class="link">Source</a></p><div class="doc"><p><code>skipMany p</code> applies the parser <code>p</code> <em>zero</em> or more times, skipping
  its result.
</p></div></div><div class="top"><p class="src"><a name="v:skipSome" class="def">skipSome</a> ::  <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp ()<a href="src/Text-Appar-Parser.html#skipSome" class="link">Source</a></p><div class="doc"><p><code>skipSome p</code> applies the parser <code>p</code> <em>one</em> or more times, skipping
  its result.
</p></div></div><div class="top"><p class="src"><a name="v:sepBy1" class="def">sepBy1</a> ::  <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp b -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp [a]<a href="src/Text-Appar-Parser.html#sepBy1" class="link">Source</a></p><div class="doc"><p><code>sepBy1 p sep</code> parses <em>one</em> or more occurrences of <code>p</code>, separated
  by <code>sep</code>. Returns a list of values returned by <code>p</code>.
</p></div></div><div class="top"><p class="src"><a name="v:manyTill" class="def">manyTill</a> ::  <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp a -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp b -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp [a]<a href="src/Text-Appar-Parser.html#manyTill" class="link">Source</a></p><div class="doc"><p><code>manyTill p end</code> applies parser <code>p</code> <em>zero</em> or more times until
  parser <code>end</code> succeeds. Returns the list of values returned by <code>p</code>.
</p></div></div><h2 id="g:7"><code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a></code> parser combinators
</h2><div class="top"><p class="src"><a name="v:-60--36--62-" class="def">(&lt;$&gt;)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Functor">Functor</a> f =&gt; (a -&gt; b) -&gt; f a -&gt; f b</p><div class="doc"><p>An infix synonym for <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#v:fmap">fmap</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:-60--36-" class="def">(&lt;$)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Functor">Functor</a> f =&gt; <span class="keyword">forall</span> a b.  a -&gt; f b -&gt; f a</p><div class="doc"><p>Replace all locations in the input with the same value.
 The default definition is <code><code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#v:fmap">fmap</a></code> . <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#v:const">const</a></code></code>, but this may be
 overridden with a more efficient version.
</p></div></div><div class="top"><p class="src"><a name="v:-60--42--62-" class="def">(&lt;*&gt;)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; <span class="keyword">forall</span> a b.  f (a -&gt; b) -&gt; f a -&gt; f b</p><div class="doc"><p>Sequential application.
</p></div></div><div class="top"><p class="src"><a name="v:-42--62-" class="def">(*&gt;)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; <span class="keyword">forall</span> a b.  f a -&gt; f b -&gt; f b</p><div class="doc"><p>Sequence actions, discarding the value of the first argument.
</p></div></div><div class="top"><p class="src"><a name="v:-60--42-" class="def">(&lt;*)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; <span class="keyword">forall</span> a b.  f a -&gt; f b -&gt; f a</p><div class="doc"><p>Sequence actions, discarding the value of the second argument.
</p></div></div><div class="top"><p class="src"><a name="v:-60--42--42--62-" class="def">(&lt;**&gt;)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; f a -&gt; f (a -&gt; b) -&gt; f b</p><div class="doc"><p>A variant of <code><a href="Text-Appar-String.html#v:-60--42--62-">&lt;*&gt;</a></code> with the arguments reversed.
</p></div></div><div class="top"><p class="src"><a name="v:-60--124--62-" class="def">(&lt;|&gt;)</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Alternative">Alternative</a> f =&gt; <span class="keyword">forall</span> a.  f a -&gt; f a -&gt; f a</p><div class="doc"><p>An associative binary operation
</p></div></div><div class="top"><p class="src"><a name="v:some" class="def">some</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Alternative">Alternative</a> f =&gt; <span class="keyword">forall</span> a.  f a -&gt; f [a]</p><div class="doc"><p>One or more.
</p></div></div><div class="top"><p class="src"><a name="v:many" class="def">many</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Alternative">Alternative</a> f =&gt; <span class="keyword">forall</span> a.  f a -&gt; f [a]</p><div class="doc"><p>Zero or more.
</p></div></div><div class="top"><p class="src"><a name="v:pure" class="def">pure</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> f =&gt; <span class="keyword">forall</span> a.  a -&gt; f a</p><div class="doc"><p>Lift a value.
</p></div></div><h2 id="g:8">Internals
</h2><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:MkParser" class="def">MkParser</a> inp a <a href="src/Text-Appar-Parser.html#MkParser" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:P" class="def">P</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:runParser" class="def">runParser</a> :: inp -&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a, inp)</dt><dd class="doc"><p>Getting the internal parser.
</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:MkParser" class="caption collapser" onclick="toggleSection('i:MkParser')">Instances</p><div id="section.i:MkParser" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Monad">Monad</a> (<a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Functor">Functor</a> (<a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:MonadPlus">MonadPlus</a> (<a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> (<a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Alternative">Alternative</a> (<a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp)</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> inp =&gt; <a name="t:Input" class="def">Input</a> inp  <span class="keyword">where</span><a href="src/Text-Appar-Input.html#Input" class="link">Source</a></p><div class="doc"><p>The class for parser input.
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:car" class="def">car</a> :: inp -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Text-Appar-Input.html#car" class="link">Source</a></p><div class="doc"><p>The head function for input
</p></div><p class="src"><a name="v:cdr" class="def">cdr</a> :: inp -&gt; inp<a href="src/Text-Appar-Input.html#cdr" class="link">Source</a></p><div class="doc"><p>The tail function for input
</p></div><p class="src"><a name="v:nil" class="def">nil</a> :: inp<a href="src/Text-Appar-Input.html#nil" class="link">Source</a></p><div class="doc"><p>The end of input
</p></div><p class="src"><a name="v:isNil" class="def">isNil</a> :: inp -&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/Text-Appar-Input.html#isNil" class="link">Source</a></p><div class="doc"><p>The function to check the end of input
</p></div></div><div class="subs instances"><p id="control.i:Input" class="caption collapser" onclick="toggleSection('i:Input')">Instances</p><div id="section.i:Input" class="show"><table><tr><td class="src"><a href="Text-Appar-String.html#t:Input">Input</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Text-Appar-String.html#t:Input">Input</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Text-Appar-String.html#t:Input">Input</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:satisfy" class="def">satisfy</a> :: <a href="Text-Appar-String.html#t:Input">Input</a> inp =&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Text-Appar-String.html#t:MkParser">MkParser</a> inp <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Text-Appar-Parser.html#satisfy" class="link">Source</a></p><div class="doc"><p>The parser <code>satisfy f</code> succeeds for any character for which the
  supplied function <code>f</code> returns <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#v:True">True</a></code>. Returns the character 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.13.2</p></div></body></html>