/usr/share/doc/libghc-haxml-doc/html/Text-XML-HaXml-Xtract-Lex.html is in libghc-haxml-doc 1:1.25.3-6.
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 | <!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.Xtract.Lex</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_Text-XML-HaXml-Xtract-Lex.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-XML-HaXml-Xtract-Lex.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.25.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</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Text.XML.HaXml.Xtract.Lex</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This is another hand-written lexer, this time for the Xtract
command-language. The entry point is lexXtract. You don't
normally need to use this module directly - the lexer is called
automatically by the parser. (We only expose this interface
for debugging purposes.)</p><p>The Xtract command language is very like the XPath specification.</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:lexXtract">lexXtract</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> [<a href="Text-XML-HaXml-Xtract-Lex.html#t:Token">Token</a>]</li><li class="src short"><span class="keyword">data</span> <a href="#t:Posn">Posn</a> = <a href="#v:Pn">Pn</a> <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:TokenT">TokenT</a><ul class="subs"><li>= <a href="#v:Symbol">Symbol</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:TokString">TokString</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:TokNum">TokNum</a> <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Integer">Integer</a></li></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:Token">Token</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> (<a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a>, <a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a>)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:lexXtract" class="def">lexXtract</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> [<a href="Text-XML-HaXml-Xtract-Lex.html#t:Token">Token</a>] <a href="src/Text-XML-HaXml-Xtract-Lex.html#lexXtract" class="link">Source</a> <a href="#v:lexXtract" class="selflink">#</a></p><div class="doc"><p>First argument is a transformer for pattern strings, e.g. map toLower,
but only applying to parts of the pattern not in quotation marks.
(Needed to canonicalise HTML where tags are case-insensitive, but
attribute values are case sensitive.)</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Posn" class="def">Posn</a> <a href="src/Text-XML-HaXml-Xtract-Lex.html#Posn" class="link">Source</a> <a href="#t:Posn" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Pn" class="def">Pn</a> <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a></td><td class="doc empty"> </td></tr></table></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 clearfix"><span class="inst-left"><span id="control.i:id:Posn:Eq:1" class="instance expander" onclick="toggleSection('i:id:Posn:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a></span> <a href="src/Text-XML-HaXml-Xtract-Lex.html#line-22" class="link">Source</a> <a href="#t:Posn" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Posn:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a> -> <a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Posn:Show:2" class="instance expander" onclick="toggleSection('i:id:Posn:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a></span> <a href="src/Text-XML-HaXml-Xtract-Lex.html#line-24" class="link">Source</a> <a href="#t:Posn" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:Posn:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a> -> <a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:TokenT" class="def">TokenT</a> <a href="src/Text-XML-HaXml-Xtract-Lex.html#TokenT" class="link">Source</a> <a href="#t:TokenT" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Symbol" class="def">Symbol</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:TokString" class="def">TokString</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:TokNum" class="def">TokNum</a> <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Integer">Integer</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:TokenT" class="caption collapser" onclick="toggleSection('i:TokenT')">Instances</p><div id="section.i:TokenT" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:TokenT:Eq:1" class="instance expander" onclick="toggleSection('i:id:TokenT:Eq:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a></span> <a href="src/Text-XML-HaXml-Xtract-Lex.html#line-31" class="link">Source</a> <a href="#t:TokenT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:TokenT:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a> -> <a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a> -> <a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:TokenT:Show:2" class="instance expander" onclick="toggleSection('i:id:TokenT:Show:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> <a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a></span> <a href="src/Text-XML-HaXml-Xtract-Lex.html#line-33" class="link">Source</a> <a href="#t:TokenT" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:TokenT:Show:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="Text-XML-HaXml-Schema-PrimitiveTypes.html#t:Int">Int</a> -> <a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:Token" class="def">Token</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> (<a href="Text-XML-HaXml-Xtract-Lex.html#t:Posn">Posn</a>, <a href="Text-XML-HaXml-Xtract-Lex.html#t:TokenT">TokenT</a>) <a href="src/Text-XML-HaXml-Xtract-Lex.html#Token" class="link">Source</a> <a href="#t:Token" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|