/usr/share/doc/libghc-haxml-doc/html/Text-XML-HaXml-XmlContent-Haskell.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 38 | <!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.Haskell</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-Haskell.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-XML-HaXml-XmlContent-Haskell.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.Haskell</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">Instances (only) for the XmlContent class, for datatypes that
</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 a set of Haskell datatypes, use DrIFT to
derive instances of this class for you:
http://repetae.net/john/computer/haskell/DrIFT
and use the current module for instances of the standard Haskell
datatypes list, Maybe, and so on.
</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,
but _do_not_ use the current module for instances: use
Text.XML.HaXml.XmlContent instead.
</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"><a href="#v:toXml">toXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> a -> <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 => <a href="Text-XML-HaXml-Types.html#t:Document">Document</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/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 => <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-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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> 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"><a href="#v:fpsShowXml">fpsShowXml</a> :: <a href="Text-XML-HaXml-XmlContent-Parser.html#t:XmlContent">XmlContent</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> a -> <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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> a -> <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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> a -> <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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</a> -> <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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> a -> <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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> a -> <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><h1 id="g:2">Instances (only) for the XmlContent class, for datatypes that
</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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> a -> <a href="Text-XML-HaXml-Types.html#t:Document">Document</a> ()<a href="src/Text-XML-HaXml-XmlContent-Haskell.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 => <a href="Text-XML-HaXml-Types.html#t:Document">Document</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/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-Haskell.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 => <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-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-Haskell.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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> 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-XML-HaXml-XmlContent-Haskell.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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> a -> <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-Haskell.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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> <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-Haskell.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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> a -> <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-Haskell.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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -> a -> <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-Haskell.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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</a> -> <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-Haskell.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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> a -> <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-Haskell.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 => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-IO-Handle.html#t:Handle">Handle</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> a -> <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-Haskell.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>
|