This file is indexed.

/usr/share/doc/libghc-haxml-doc/html/Text-XML-HaXml-XmlContent.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
32
33
34
35
36
37
<!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.XmlContent</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-XmlContent.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-XML-HaXml-XmlContent.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>None</td></tr></table><p class="caption">Text.XML.HaXml.XmlContent</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Re-export everything from Text.XML.HaXml.XmlContent.Parser.
</a></li><li><a href="#g:2">Contains instances of the XmlContent classes,
</a></li><li><a href="#g:3">Whole-document conversion functions
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The class <code><a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a></code> is a kind of replacement for Read and Show:
   it provides conversions between a generic XML tree representation
   and your own more specialised typeful Haskell data trees.
</p><p>If you are starting with an XML DTD, use HaXml's tool DtdToHaskell
   to generate both the Haskell types and the corresponding instances.
</p><p>If you are starting with a set of Haskell datatypes, use DrIFT to
   derive instances of this class for you:
       http://repetae.net/john/computer/haskell/DrIFT
   and _do_not_ use the current module, but rather
   Text.XML.HaXml.XmlContent.Haskell, for the correct matching
   instances for standard Haskell datatypes.
</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">module <a href="Text-XML-HaXml-XmlContent-Parser.html">Text.XML.HaXml.XmlContent.Parser</a></li><li class="src short">module <a href="Text-XML-HaXml-TypeMapping.html">Text.XML.HaXml.TypeMapping</a></li><li class="src short"><a href="#v:toXml">toXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> 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 -&gt; <a href="Text-XML-HaXml-Types.html#t:Document">Document</a> ()</li><li class="src short"><a href="#v:fromXml">fromXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="Text-XML-HaXml-Types.html#t:Document">Document</a> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> a</li><li class="src short"><a href="#v:readXml">readXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> a</li><li class="src short"><a href="#v:showXml">showXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> 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 -&gt; <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:fpsShowXml">fpsShowXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> 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 -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:fReadXml">fReadXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:fWriteXml">fWriteXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:fpsWriteXml">fpsWriteXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:hGetXml">hGetXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:hPutXml">hPutXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</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 -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:fpsHPutXml">fpsHPutXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</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 -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li></ul></div><div id="interface"><h1 id="g:1">Re-export everything from Text.XML.HaXml.XmlContent.Parser.
</h1><div class="top"><p class="src">module <a href="Text-XML-HaXml-XmlContent-Parser.html">Text.XML.HaXml.XmlContent.Parser</a></p></div><div class="top"><p class="src">module <a href="Text-XML-HaXml-TypeMapping.html">Text.XML.HaXml.TypeMapping</a></p></div><h1 id="g:2">Contains instances of the XmlContent classes,
</h1><h1 id="g:3">Whole-document conversion functions
</h1><div class="top"><p class="src"><a name="v:toXml" class="def">toXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> 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 -&gt; <a href="Text-XML-HaXml-Types.html#t:Document">Document</a> ()<a href="src/Text-XML-HaXml-XmlContent.html#toXml" class="link">Source</a></p><div class="doc"><p>Convert a fully-typed XML document to a string (with or without DTD).
</p></div></div><div class="top"><p class="src"><a name="v:fromXml" class="def">fromXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="Text-XML-HaXml-Types.html#t:Document">Document</a> <a href="Text-XML-HaXml-Posn.html#t:Posn">Posn</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> a<a href="src/Text-XML-HaXml-XmlContent.html#fromXml" class="link">Source</a></p><div class="doc"><p>Read a Haskell value from an XML document, ignoring the DTD and
   using the Haskell result type to determine how to parse it.
</p></div></div><div class="top"><p class="src"><a name="v:readXml" class="def">readXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> a<a href="src/Text-XML-HaXml-XmlContent.html#readXml" class="link">Source</a></p><div class="doc"><p>Read a fully-typed XML document from a string.
</p></div></div><div class="top"><p class="src"><a name="v:showXml" class="def">showXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> 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 -&gt; <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-XML-HaXml-XmlContent.html#showXml" class="link">Source</a></p><div class="doc"><p>Convert a fully-typed XML document to a string (without DTD).
</p></div></div><div class="top"><p class="src"><a name="v:fpsShowXml" class="def">fpsShowXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> 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 -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a><a href="src/Text-XML-HaXml-XmlContent.html#fpsShowXml" class="link">Source</a></p><div class="doc"><p>Convert a fully-typed XML document to a ByteString (without DTD).
</p></div></div><div class="top"><p class="src"><a name="v:fReadXml" class="def">fReadXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a<a href="src/Text-XML-HaXml-XmlContent.html#fReadXml" class="link">Source</a></p><div class="doc"><p>Read an XML document from a file and convert it to a fully-typed
   Haskell value.
</p></div></div><div class="top"><p class="src"><a name="v:fWriteXml" class="def">fWriteXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/Text-XML-HaXml-XmlContent.html#fWriteXml" class="link">Source</a></p><div class="doc"><p>Write a fully-typed Haskell value to the given file as an XML
   document.
</p></div></div><div class="top"><p class="src"><a name="v:fpsWriteXml" class="def">fpsWriteXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/Text-XML-HaXml-XmlContent.html#fpsWriteXml" class="link">Source</a></p><div class="doc"><p>Write any Haskell value to the given file as an XML document,
   using the FastPackedString interface (output will not be prettified).
</p></div></div><div class="top"><p class="src"><a name="v:hGetXml" class="def">hGetXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a<a href="src/Text-XML-HaXml-XmlContent.html#hGetXml" class="link">Source</a></p><div class="doc"><p>Read a fully-typed XML document from a file handle.
</p></div></div><div class="top"><p class="src"><a name="v:hPutXml" class="def">hPutXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</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 -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/Text-XML-HaXml-XmlContent.html#hPutXml" class="link">Source</a></p><div class="doc"><p>Write a fully-typed XML document to a file handle.
</p></div></div><div class="top"><p class="src"><a name="v:fpsHPutXml" class="def">fpsHPutXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</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 -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/Text-XML-HaXml-XmlContent.html#fpsHPutXml" class="link">Source</a></p><div class="doc"><p>Write a fully-typed XML document to a file handle, using the
   FastPackedString interface (output will not be prettified).
</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>