/usr/share/doc/libghc-haxml-doc/html/Text-XML-HaXml-Posn.html is in libghc-haxml-doc 1:1.23.3-2build1.
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 | <!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.XML.HaXml.Posn</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-XML-HaXml-Posn.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-XML-HaXml-Posn.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">HaXml-1.23.3: Utilities for manipulating XML documents</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.XML.HaXml.Posn</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Position type
</a><ul><li><a href="#g:2">Constructors of a new position
</a></li><li><a href="#g:3">Strictifier
</a></li><li><a href="#g:4">Modifiers
</a></li><li><a href="#g:5">Accessors
</a></li></ul></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Define a position datatype for giving locations in error messages.
</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">data</span> <a href="#t:Posn">Posn</a> </li><li class="src short"><a href="#v:posInNewCxt">posInNewCxt</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a></li><li class="src short"><a href="#v:noPos">noPos</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a></li><li class="src short"><a href="#v:forcep">forcep</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a></li><li class="src short"><a href="#v:addcol">addcol</a> :: <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a></li><li class="src short"><a href="#v:newline">newline</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a></li><li class="src short"><a href="#v:tab">tab</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a></li><li class="src short"><a href="#v:white">white</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a></li><li class="src short"><a href="#v:posnFilename">posnFilename</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:posnLine">posnLine</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a></li><li class="src short"><a href="#v:posnColumn">posnColumn</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a></li></ul></div><div id="interface"><h1 id="g:1">Position type
</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Posn" class="def">Posn</a> <a href="src/Text-XML-HaXml-Posn.html#Posn" class="link">Source</a></p><div class="doc"><p>Source positions contain a filename, line, column, and an
inclusion point, which is itself another source position,
recursively.
</p></div><div class="subs instances"><p id="control.i:Posn" class="caption collapser" onclick="toggleSection('i:Posn')">Instances</p><div id="section.i:Posn" 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-XML-HaXml-Posn.html#t:Posn">Posn</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-XML-HaXml-Posn.html#t:Posn">Posn</a></td><td class="doc empty"> </td></tr></table></div></div></div><h2 id="g:2">Constructors of a new position
</h2><div class="top"><p class="src"><a name="v:posInNewCxt" class="def">posInNewCxt</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a><a href="src/Text-XML-HaXml-Posn.html#posInNewCxt" class="link">Source</a></p><div class="doc"><p><code>posInNewCxt name pos</code> creates a new source position from an old one.
It is used when opening a new file (e.g. a DTD inclusion), to denote
the start of the file <code>name</code>, but retain the stacked information that
it was included from the old <code>pos</code>.
</p></div></div><div class="top"><p class="src"><a name="v:noPos" class="def">noPos</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a><a href="src/Text-XML-HaXml-Posn.html#noPos" class="link">Source</a></p><div class="doc"><p>Dummy value for generated data, where a true source position does
not exist.
</p></div></div><h2 id="g:3">Strictifier
</h2><div class="top"><p class="src"><a name="v:forcep" class="def">forcep</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a><a href="src/Text-XML-HaXml-Posn.html#forcep" class="link">Source</a></p><div class="doc"><p>Just used to strictify the internal values of a position, to avoid
space leaks.
</p></div></div><h2 id="g:4">Modifiers
</h2><div class="top"><p class="src"><a name="v:addcol" class="def">addcol</a> :: <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a><a href="src/Text-XML-HaXml-Posn.html#addcol" class="link">Source</a></p><div class="doc"><p>Add n character positions to the given position.
</p></div></div><div class="top"><p class="src"><a name="v:newline" class="def">newline</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a><a href="src/Text-XML-HaXml-Posn.html#newline" class="link">Source</a></p><div class="doc"><p>Add a newline or tab to the given position.
</p></div></div><div class="top"><p class="src"><a name="v:tab" class="def">tab</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a><a href="src/Text-XML-HaXml-Posn.html#tab" class="link">Source</a></p><div class="doc"><p>Add a newline or tab to the given position.
</p></div></div><div class="top"><p class="src"><a name="v:white" class="def">white</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a><a href="src/Text-XML-HaXml-Posn.html#white" class="link">Source</a></p><div class="doc"><p>Add the given whitespace char to the given position.
Precondition: <code>white c | isSpace c = True</code>
</p></div></div><h2 id="g:5">Accessors
</h2><div class="top"><p class="src"><a name="v:posnFilename" class="def">posnFilename</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a><a href="src/Text-XML-HaXml-Posn.html#posnFilename" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:posnLine" class="def">posnLine</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a><a href="src/Text-XML-HaXml-Posn.html#posnLine" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:posnColumn" class="def">posnColumn</a> :: <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a><a href="src/Text-XML-HaXml-Posn.html#posnColumn" class="link">Source</a></p></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>
|