/usr/share/doc/libghc-parsec3-doc/html/Text-Parsec.html is in libghc-parsec3-doc 3.1.3-3.
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 | <!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</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-Parsec.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-Parsec.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.3: Monadic parser combinators</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>derek.a.elkins@gmail.com</td></tr><tr><th>Safe Haskell</th><td>Safe-Inferred</td></tr></table><p class="caption">Text.Parsec</p></div><div id="description"><p class="caption">Description</p><div class="doc empty"> </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">module <a href="Text-Parsec-Prim.html">Text.Parsec.Prim</a></li><li class="src short">module <a href="Text-Parsec-Char.html">Text.Parsec.Char</a></li><li class="src short">module <a href="Text-Parsec-Combinator.html">Text.Parsec.Combinator</a></li><li class="src short">module <a href="Text-Parsec-String.html">Text.Parsec.String</a></li><li class="src short">module <a href="Text-Parsec-ByteString.html">Text.Parsec.ByteString</a></li><li class="src short">module <a href="Text-Parsec-ByteString-Lazy.html">Text.Parsec.ByteString.Lazy</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:ParseError">ParseError</a> </li><li class="src short"><a href="#v:errorPos">errorPos</a> :: <a href="Text-Parsec.html#t:ParseError">ParseError</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:SourcePos">SourcePos</a> </li><li class="src short"><span class="keyword">type</span> <a href="#t:SourceName">SourceName</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"><span class="keyword">type</span> <a href="#t:Line">Line</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Column">Column</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:sourceName">sourceName</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:SourceName">SourceName</a></li><li class="src short"><a href="#v:sourceLine">sourceLine</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Line">Line</a></li><li class="src short"><a href="#v:sourceColumn">sourceColumn</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Column">Column</a></li><li class="src short"><a href="#v:incSourceLine">incSourceLine</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Line">Line</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></li><li class="src short"><a href="#v:incSourceColumn">incSourceColumn</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Column">Column</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></li><li class="src short"><a href="#v:setSourceLine">setSourceLine</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Line">Line</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></li><li class="src short"><a href="#v:setSourceColumn">setSourceColumn</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Column">Column</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></li><li class="src short"><a href="#v:setSourceName">setSourceName</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:SourceName">SourceName</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src">module <a href="Text-Parsec-Prim.html">Text.Parsec.Prim</a></p></div><div class="top"><p class="src">module <a href="Text-Parsec-Char.html">Text.Parsec.Char</a></p></div><div class="top"><p class="src">module <a href="Text-Parsec-Combinator.html">Text.Parsec.Combinator</a></p></div><div class="top"><p class="src">module <a href="Text-Parsec-String.html">Text.Parsec.String</a></p></div><div class="top"><p class="src">module <a href="Text-Parsec-ByteString.html">Text.Parsec.ByteString</a></p></div><div class="top"><p class="src">module <a href="Text-Parsec-ByteString-Lazy.html">Text.Parsec.ByteString.Lazy</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ParseError" class="def">ParseError</a> <a href="src/Text-Parsec-Error.html#ParseError" class="link">Source</a></p><div class="doc"><p>The abstract data type <code>ParseError</code> represents parse errors. It
provides the source position (<code><a href="Text-Parsec.html#t:SourcePos">SourcePos</a></code>) of the error
and a list of error messages (<code><a href="Text-Parsec-Error.html#t:Message">Message</a></code>). A <code>ParseError</code>
can be returned by the function <code><a href="Text-Parsec-Prim.html#t:parse">parse</a></code>. <code>ParseError</code> is an
instance of the <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a></code> class.
</p></div><div class="subs instances"><p id="control.i:ParseError" class="caption collapser" onclick="toggleSection('i:ParseError')">Instances</p><div id="section.i:ParseError" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-Parsec.html#t:ParseError">ParseError</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:errorPos" class="def">errorPos</a> :: <a href="Text-Parsec.html#t:ParseError">ParseError</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a><a href="src/Text-Parsec-Error.html#errorPos" class="link">Source</a></p><div class="doc"><p>Extracts the source position from the parse error
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SourcePos" class="def">SourcePos</a> <a href="src/Text-Parsec-Pos.html#SourcePos" class="link">Source</a></p><div class="doc"><p>The abstract data type <code>SourcePos</code> represents source positions. It
contains the name of the source (i.e. file name), a line number and
a column number. <code>SourcePos</code> is an instance of the <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a></code>, <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a></code> and
<code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a></code> class.
</p></div><div class="subs instances"><p id="control.i:SourcePos" class="caption collapser" onclick="toggleSection('i:SourcePos')">Instances</p><div id="section.i:SourcePos" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#t:Data">Data</a> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:SourceName" class="def">SourceName</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-Parsec-Pos.html#SourceName" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Line" class="def">Line</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a><a href="src/Text-Parsec-Pos.html#Line" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Column" class="def">Column</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a><a href="src/Text-Parsec-Pos.html#Column" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:sourceName" class="def">sourceName</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:SourceName">SourceName</a><a href="src/Text-Parsec-Pos.html#sourceName" class="link">Source</a></p><div class="doc"><p>Extracts the name of the source from a source position.
</p></div></div><div class="top"><p class="src"><a name="v:sourceLine" class="def">sourceLine</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Line">Line</a><a href="src/Text-Parsec-Pos.html#sourceLine" class="link">Source</a></p><div class="doc"><p>Extracts the line number from a source position.
</p></div></div><div class="top"><p class="src"><a name="v:sourceColumn" class="def">sourceColumn</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Column">Column</a><a href="src/Text-Parsec-Pos.html#sourceColumn" class="link">Source</a></p><div class="doc"><p>Extracts the column number from a source position.
</p></div></div><div class="top"><p class="src"><a name="v:incSourceLine" class="def">incSourceLine</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Line">Line</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a><a href="src/Text-Parsec-Pos.html#incSourceLine" class="link">Source</a></p><div class="doc"><p>Increments the line number of a source position.
</p></div></div><div class="top"><p class="src"><a name="v:incSourceColumn" class="def">incSourceColumn</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Column">Column</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a><a href="src/Text-Parsec-Pos.html#incSourceColumn" class="link">Source</a></p><div class="doc"><p>Increments the column number of a source position.
</p></div></div><div class="top"><p class="src"><a name="v:setSourceLine" class="def">setSourceLine</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Line">Line</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a><a href="src/Text-Parsec-Pos.html#setSourceLine" class="link">Source</a></p><div class="doc"><p>Set the line number of a source position.
</p></div></div><div class="top"><p class="src"><a name="v:setSourceColumn" class="def">setSourceColumn</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:Column">Column</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a><a href="src/Text-Parsec-Pos.html#setSourceColumn" class="link">Source</a></p><div class="doc"><p>Set the column number of a source position.
</p></div></div><div class="top"><p class="src"><a name="v:setSourceName" class="def">setSourceName</a> :: <a href="Text-Parsec.html#t:SourcePos">SourcePos</a> -> <a href="Text-Parsec.html#t:SourceName">SourceName</a> -> <a href="Text-Parsec.html#t:SourcePos">SourcePos</a><a href="src/Text-Parsec-Pos.html#setSourceName" class="link">Source</a></p><div class="doc"><p>Set the name of the source.
</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>
|