/usr/share/doc/libghc-haxml-doc/html/Text-XML-HaXml-Xtract-Parse.html is in libghc-haxml-doc 1:1.25.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 | <!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.Parse</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-Parse.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-XML-HaXml-Xtract-Parse.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.4: 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.Parse</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A parser for the Xtract command-language. (The string input is
tokenised internally by the lexer <code><a href="Text-XML-HaXml-Xtract-Lex.html#v:lexXtract">lexXtract</a></code>.)
See <a href="http://www.haskell.org/HaXml/Xtract.html">http://www.haskell.org/HaXml/Xtract.html</a> for the grammar that
is accepted.</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:parseXtract">parseXtract</a> :: [<a href="Text-XML-HaXml-Xtract-Lex.html#t:Token">Token</a>] -> <a href="Text-XML-HaXml-Xtract-Combinators.html#t:DFilter">DFilter</a> i</li><li class="src short"><a href="#v:xtract">xtract</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-XML-HaXml-Combinators.html#t:CFilter">CFilter</a> i</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:parseXtract" class="def">parseXtract</a> :: [<a href="Text-XML-HaXml-Xtract-Lex.html#t:Token">Token</a>] -> <a href="Text-XML-HaXml-Xtract-Combinators.html#t:DFilter">DFilter</a> i <a href="src/Text-XML-HaXml-Xtract-Parse.html#parseXtract" class="link">Source</a> <a href="#v:parseXtract" class="selflink">#</a></p><div class="doc"><p>The cool thing is that the Xtract command parser directly builds
a higher-order <code><a href="Text-XML-HaXml-Xtract-Combinators.html#t:DFilter">DFilter</a></code> (see <a href="Text-XML-HaXml-Xtract-Combinators.html">Text.XML.HaXml.Xtract.Combinators</a>)
which can be applied to an XML document without further ado.
(<code>parseXtract</code> halts the program if a parse error is found.)</p></div></div><div class="top"><p class="src"><a id="v:xtract" class="def">xtract</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -> <a href="Text-XML-HaXml-Combinators.html#t:CFilter">CFilter</a> i <a href="src/Text-XML-HaXml-Xtract-Parse.html#xtract" class="link">Source</a> <a href="#v:xtract" class="selflink">#</a></p><div class="doc"><p>To convert an Xtract query into an ordinary HaXml combinator expression.
First arg is a tag-transformation function (e.g. map toLower) applied</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|