/usr/share/doc/libghc-hxt-doc/html/Text-XML-HXT-Arrow-XmlState.html is in libghc-hxt-doc 9.3.1.16-2.
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | <!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.HXT.Arrow.XmlState</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-HXT-Arrow-XmlState.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-XML-HXT-Arrow-XmlState.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">hxt-9.3.1.16: A collection of tools for processing XML with Haskell.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2010 Uwe Schmidt</td></tr><tr><th>License</th><td>MIT</td></tr><tr><th>Maintainer</th><td>Uwe Schmidt (uwe@fh-wedel.de)</td></tr><tr><th>Stability</th><td>stable</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Text.XML.HXT.Arrow.XmlState</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Data Types</a></li><li><a href="#g:2">User State Manipulation</a></li><li><a href="#g:3">Run IO State arrows</a></li><li><a href="#g:4">Global System State Configuration and Access</a></li><li><a href="#g:5">Error Handling</a></li><li><a href="#g:6">Tracing</a></li><li><a href="#g:7">Document Base</a></li><li><a href="#g:8">URI Manipulation</a></li><li><a href="#g:9">Mime Type Handling</a></li><li><a href="#g:10">System Configuration and Options</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>the interface for the basic state maipulation functions</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:XIOState">XIOState</a> us</li><li class="src short"><span class="keyword">data</span> <a href="#t:XIOSysState">XIOSysState</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:IOStateArrow">IOStateArrow</a> s b c = <a href="Control-Arrow-IOStateListArrow.html#t:IOSLA">IOSLA</a> (<a href="Text-XML-HXT-Arrow-XmlState.html#t:XIOState">XIOState</a> s) b c</li><li class="src short"><span class="keyword">type</span> <a href="#t:IOSArrow">IOSArrow</a> b c = <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> () b c</li><li class="src short"><span class="keyword">type</span> <a href="#t:SysConfig">SysConfig</a> = <a href="Text-XML-HXT-Arrow-XmlState.html#t:XIOSysState">XIOSysState</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:XIOSysState">XIOSysState</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:SysConfigList">SysConfigList</a> = [<a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a>]</li><li class="src short"><a href="#v:getUserState">getUserState</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b s</li><li class="src short"><a href="#v:setUserState">setUserState</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s s s</li><li class="src short"><a href="#v:changeUserState">changeUserState</a> :: (b -> s -> s) -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:withExtendedUserState">withExtendedUserState</a> :: s1 -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> (s1, s0) b c -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s0 b c</li><li class="src short"><a href="#v:withOtherUserState">withOtherUserState</a> :: s1 -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s1 b c -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s0 b c</li><li class="src short"><a href="#v:withoutUserState">withoutUserState</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOSArrow">IOSArrow</a> b c -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s0 b c</li><li class="src short"><a href="#v:runX">runX</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOSArrow">IOSArrow</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> c -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [c]</li><li class="src short"><a href="#v:configSysVars">configSysVars</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfigList">SysConfigList</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s c c</li><li class="src short"><a href="#v:setSysAttr">setSysAttr</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <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></li><li class="src short"><a href="#v:unsetSysAttr">unsetSysAttr</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:getSysAttr">getSysAttr</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:getAllSysAttrs">getAllSysAttrs</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="Text-XML-HXT-DOM-TypeDefs.html#t:Attributes">Attributes</a></li><li class="src short"><a href="#v:setSysAttrString">setSysAttrString</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:setSysAttrInt">setSysAttrInt</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-Int.html#t:Int">Int</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:getSysAttrInt">getSysAttrInt</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:getConfigAttr">getConfigAttr</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-HXT-Arrow-XmlState.html#t:SysConfigList">SysConfigList</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 class="src short"><a href="#v:clearErrStatus">clearErrStatus</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:setErrStatus">setErrStatus</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:getErrStatus">getErrStatus</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:setErrMsgStatus">setErrMsgStatus</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a></li><li class="src short"><a href="#v:setErrorMsgHandler">setErrorMsgHandler</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="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/System-IO.html#t:IO">IO</a> ()) -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:errorMsgStderr">errorMsgStderr</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:errorMsgCollect">errorMsgCollect</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:errorMsgStderrAndCollect">errorMsgStderrAndCollect</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:errorMsgIgnore">errorMsgIgnore</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:getErrorMessages">getErrorMessages</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a></li><li class="src short"><a href="#v:filterErrorMsg">filterErrorMsg</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a></li><li class="src short"><a href="#v:issueWarn">issueWarn</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:issueErr">issueErr</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:issueFatal">issueFatal</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:issueExc">issueExc</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Exception-Base.html#t:SomeException">SomeException</a> b</li><li class="src short"><a href="#v:setDocumentStatus">setDocumentStatus</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a></li><li class="src short"><a href="#v:setDocumentStatusFromSystemState">setDocumentStatusFromSystemState</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a></li><li class="src short"><a href="#v:documentStatusOk">documentStatusOk</a> :: <a href="Text-XML-HXT-Arrow-XmlArrow.html#t:ArrowXml">ArrowXml</a> a => a <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a></li><li class="src short"><a href="#v:setTraceLevel">setTraceLevel</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:getTraceLevel">getTraceLevel</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:withTraceLevel">withTraceLevel</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b c -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b c</li><li class="src short"><a href="#v:setTraceCmd">setTraceCmd</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</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/System-IO.html#t:IO">IO</a> ()) -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:getTraceCmd">getTraceCmd</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> a b (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</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/System-IO.html#t:IO">IO</a> ())</li><li class="src short"><a href="#v:trace">trace</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:traceMsg">traceMsg</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:traceValue">traceValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> (b -> <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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:traceString">traceString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> (b -> <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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:traceSource">traceSource</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a></li><li class="src short"><a href="#v:traceTree">traceTree</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a></li><li class="src short"><a href="#v:traceDoc">traceDoc</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a></li><li class="src short"><a href="#v:setBaseURI">setBaseURI</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <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></li><li class="src short"><a href="#v:getBaseURI">getBaseURI</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:changeBaseURI">changeBaseURI</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <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></li><li class="src short"><a href="#v:setDefaultBaseURI">setDefaultBaseURI</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:getDefaultBaseURI">getDefaultBaseURI</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:runInLocalURIContext">runInLocalURIContext</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b c -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b c</li><li class="src short"><a href="#v:expandURIString">expandURIString</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-Maybe.html#t:Maybe">Maybe</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 class="src short"><a href="#v:expandURI">expandURI</a> :: <a href="Text-XML-HXT-Arrow-XmlArrow.html#t:ArrowXml">ArrowXml</a> a => 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></li><li class="src short"><a href="#v:mkAbsURI">mkAbsURI</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <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></li><li class="src short"><a href="#v:getFragmentFromURI">getFragmentFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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></li><li class="src short"><a href="#v:getPathFromURI">getPathFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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></li><li class="src short"><a href="#v:getPortFromURI">getPortFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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></li><li class="src short"><a href="#v:getQueryFromURI">getQueryFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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></li><li class="src short"><a href="#v:getRegNameFromURI">getRegNameFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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></li><li class="src short"><a href="#v:getSchemeFromURI">getSchemeFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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></li><li class="src short"><a href="#v:getUserInfoFromURI">getUserInfoFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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></li><li class="src short"><a href="#v:getMimeTypeTable">getMimeTypeTable</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="Text-XML-HXT-DOM-MimeTypes.html#t:MimeTypeTable">MimeTypeTable</a></li><li class="src short"><a href="#v:setMimeTypeTable">setMimeTypeTable</a> :: <a href="Text-XML-HXT-DOM-MimeTypes.html#t:MimeTypeTable">MimeTypeTable</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:setMimeTypeTableFromFile">setMimeTypeTableFromFile</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b</li><li class="src short"><a href="#v:yes">yes</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:no">no</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:withAcceptedMimeTypes">withAcceptedMimeTypes</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withAddDefaultDTD">withAddDefaultDTD</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withSysAttr">withSysAttr</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withCanonicalize">withCanonicalize</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withCompression">withCompression</a> :: (<a href="Text-XML-HXT-Arrow-XmlState-TypeDefs.html#t:CompressionFct">CompressionFct</a>, <a href="Text-XML-HXT-Arrow-XmlState-TypeDefs.html#t:DeCompressionFct">DeCompressionFct</a>) -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withCheckNamespaces">withCheckNamespaces</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withDefaultBaseURI">withDefaultBaseURI</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withStrictDeserialize">withStrictDeserialize</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withEncodingErrors">withEncodingErrors</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withErrors">withErrors</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withFileMimeType">withFileMimeType</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withIgnoreNoneXmlContents">withIgnoreNoneXmlContents</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withIndent">withIndent</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withInputEncoding">withInputEncoding</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withInputOption">withInputOption</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withInputOptions">withInputOptions</a> :: <a href="Text-XML-HXT-DOM-TypeDefs.html#t:Attributes">Attributes</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withMimeTypeFile">withMimeTypeFile</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withMimeTypeHandler">withMimeTypeHandler</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-HXT-Arrow-XmlState.html#t:IOSArrow">IOSArrow</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withNoEmptyElemFor">withNoEmptyElemFor</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withXmlPi">withXmlPi</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withOutputEncoding">withOutputEncoding</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withOutputXML">withOutputXML</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withOutputHTML">withOutputHTML</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withOutputXHTML">withOutputXHTML</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withOutputPLAIN">withOutputPLAIN</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withParseByMimeType">withParseByMimeType</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withParseHTML">withParseHTML</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withPreserveComment">withPreserveComment</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withProxy">withProxy</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withRedirect">withRedirect</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withRemoveWS">withRemoveWS</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withShowHaskell">withShowHaskell</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withShowTree">withShowTree</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withStrictInput">withStrictInput</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withSubstDTDEntities">withSubstDTDEntities</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withSubstHTMLEntities">withSubstHTMLEntities</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withTextMode">withTextMode</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withTrace">withTrace</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withValidate">withValidate</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li><li class="src short"><a href="#v:withWarnings">withWarnings</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a></li></ul></div><div id="interface"><h1 id="g:1">Data Types</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:XIOState" class="def">XIOState</a> us <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#XIOState" class="link">Source</a> <a href="#t:XIOState" class="selflink">#</a></p><div class="doc"><p>state datatype consists of a system state and a user state
the user state is not fixed</p></div><div class="subs instances"><p id="control.i:XIOState" class="caption collapser" onclick="toggleSection('i:XIOState')">Instances</p><div id="section.i:XIOState" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:XIOState:NFData:1" class="instance expander" onclick="toggleSection('i:id:XIOState:NFData:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/deepseq-1.4.2.0/Control-DeepSeq.html#t:NFData">NFData</a> us => <a href="file:///usr/share/doc/ghc-doc/html/libraries/deepseq-1.4.2.0/Control-DeepSeq.html#t:NFData">NFData</a> (<a href="Text-XML-HXT-Arrow-XmlState.html#t:XIOState">XIOState</a> us)</span> <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#line-66" class="link">Source</a> <a href="#t:XIOState" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:XIOState:NFData:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:rnf">rnf</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:XIOState">XIOState</a> us -> () <a href="#v:rnf" 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:XIOSysState" class="def">XIOSysState</a> <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#XIOSysState" class="link">Source</a> <a href="#t:XIOSysState" class="selflink">#</a></p><div class="doc"><p>predefined system state data type with all components for the
system functions, like trace, error handling, ...</p></div><div class="subs instances"><p id="control.i:XIOSysState" class="caption collapser" onclick="toggleSection('i:XIOSysState')">Instances</p><div id="section.i:XIOSysState" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:XIOSysState:NFData:1" class="instance expander" onclick="toggleSection('i:id:XIOSysState:NFData:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/deepseq-1.4.2.0/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Text-XML-HXT-Arrow-XmlState.html#t:XIOSysState">XIOSysState</a></span> <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#line-159" class="link">Source</a> <a href="#t:XIOSysState" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:XIOSysState:NFData:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:rnf">rnf</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:XIOSysState">XIOSysState</a> -> () <a href="#v:rnf" 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:IOStateArrow" class="def">IOStateArrow</a> s b c = <a href="Control-Arrow-IOStateListArrow.html#t:IOSLA">IOSLA</a> (<a href="Text-XML-HXT-Arrow-XmlState.html#t:XIOState">XIOState</a> s) b c <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#IOStateArrow" class="link">Source</a> <a href="#t:IOStateArrow" class="selflink">#</a></p><div class="doc"><p>The arrow type for stateful arrows</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:IOSArrow" class="def">IOSArrow</a> b c = <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> () b c <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#IOSArrow" class="link">Source</a> <a href="#t:IOSArrow" class="selflink">#</a></p><div class="doc"><p>The arrow for stateful arrows with no user defined state</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:SysConfig" class="def">SysConfig</a> = <a href="Text-XML-HXT-Arrow-XmlState.html#t:XIOSysState">XIOSysState</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:XIOSysState">XIOSysState</a> <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#SysConfig" class="link">Source</a> <a href="#t:SysConfig" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:SysConfigList" class="def">SysConfigList</a> = [<a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a>] <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#SysConfigList" class="link">Source</a> <a href="#t:SysConfigList" class="selflink">#</a></p></div><h1 id="g:2">User State Manipulation</h1><div class="top"><p class="src"><a id="v:getUserState" class="def">getUserState</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b s <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#getUserState" class="link">Source</a> <a href="#v:getUserState" class="selflink">#</a></p><div class="doc"><p>read the user defined part of the state</p></div></div><div class="top"><p class="src"><a id="v:setUserState" class="def">setUserState</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s s s <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#setUserState" class="link">Source</a> <a href="#v:setUserState" class="selflink">#</a></p><div class="doc"><p>set the user defined part of the state</p></div></div><div class="top"><p class="src"><a id="v:changeUserState" class="def">changeUserState</a> :: (b -> s -> s) -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#changeUserState" class="link">Source</a> <a href="#v:changeUserState" class="selflink">#</a></p><div class="doc"><p>change the user defined part of the state</p></div></div><div class="top"><p class="src"><a id="v:withExtendedUserState" class="def">withExtendedUserState</a> :: s1 -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> (s1, s0) b c -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s0 b c <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#withExtendedUserState" class="link">Source</a> <a href="#v:withExtendedUserState" class="selflink">#</a></p><div class="doc"><p>extend user state</p><p>Run an arrow with an extended user state component, The old component
is stored together with a new one in a pair, the arrow is executed with this
extended state, and the augmented state component is removed form the state
when the arrow has finished its execution</p></div></div><div class="top"><p class="src"><a id="v:withOtherUserState" class="def">withOtherUserState</a> :: s1 -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s1 b c -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s0 b c <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#withOtherUserState" class="link">Source</a> <a href="#v:withOtherUserState" class="selflink">#</a></p><div class="doc"><p>change the type of user state</p><p>This conversion is useful, when running a state arrow with another
structure of the user state, e.g. with () when executing some IO arrows</p></div></div><div class="top"><p class="src"><a id="v:withoutUserState" class="def">withoutUserState</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOSArrow">IOSArrow</a> b c -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s0 b c <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#withoutUserState" class="link">Source</a> <a href="#v:withoutUserState" class="selflink">#</a></p></div><h1 id="g:3">Run IO State arrows</h1><div class="top"><p class="src"><a id="v:runX" class="def">runX</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOSArrow">IOSArrow</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> c -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> [c] <a href="src/Text-XML-HXT-Arrow-XmlState-RunIOStateArrow.html#runX" class="link">Source</a> <a href="#v:runX" class="selflink">#</a></p><div class="doc"><p>apply an <code><a href="Text-XML-HXT-Arrow-XmlState.html#t:IOSArrow">IOSArrow</a></code> to an empty root node with <code><a href="Text-XML-HXT-Arrow-XmlState-RunIOStateArrow.html#v:initialState">initialState</a></code> () as initial state</p><p>the main entry point for running a state arrow with IO</p><p>when running <code> runX f</code> an empty XML root node is applied to <code>f</code>.
usually <code>f</code> will start with a constant arrow (ignoring the input), e.g. a <code><a href="Text-XML-HXT-Arrow-ReadDocument.html#v:readDocument">readDocument</a></code> arrow.</p><p>for usage see examples with <code><a href="Text-XML-HXT-Arrow-WriteDocument.html#v:writeDocument">writeDocument</a></code></p><p>if input has to be feed into the arrow use <code><a href="Control-Arrow-IOStateListArrow.html#v:runIOSLA">runIOSLA</a></code> like in <code> runIOSLA f emptyX inputDoc </code></p></div></div><h1 id="g:4">Global System State Configuration and Access</h1><div class="top"><p class="src"><a id="v:configSysVars" class="def">configSysVars</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfigList">SysConfigList</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s c c <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#configSysVars" class="link">Source</a> <a href="#v:configSysVars" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:setSysAttr" class="def">setSysAttr</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <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="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#setSysAttr" class="link">Source</a> <a href="#v:setSysAttr" class="selflink">#</a></p><div class="doc"><p>store a string in global state under a given attribute name</p></div></div><div class="top"><p class="src"><a id="v:unsetSysAttr" class="def">unsetSysAttr</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#unsetSysAttr" class="link">Source</a> <a href="#v:unsetSysAttr" class="selflink">#</a></p><div class="doc"><p>remove an entry in global state, arrow input remains unchanged</p></div></div><div class="top"><p class="src"><a id="v:getSysAttr" class="def">getSysAttr</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#getSysAttr" class="link">Source</a> <a href="#v:getSysAttr" class="selflink">#</a></p><div class="doc"><p>read an attribute value from global state</p></div></div><div class="top"><p class="src"><a id="v:getAllSysAttrs" class="def">getAllSysAttrs</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="Text-XML-HXT-DOM-TypeDefs.html#t:Attributes">Attributes</a> <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#getAllSysAttrs" class="link">Source</a> <a href="#v:getAllSysAttrs" class="selflink">#</a></p><div class="doc"><p>read all attributes from global state</p></div></div><div class="top"><p class="src"><a id="v:setSysAttrString" class="def">setSysAttrString</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#setSysAttrString" class="link">Source</a> <a href="#v:setSysAttrString" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:setSysAttrInt" class="def">setSysAttrInt</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-Int.html#t:Int">Int</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#setSysAttrInt" class="link">Source</a> <a href="#v:setSysAttrInt" class="selflink">#</a></p><div class="doc"><p>store an int value in global state</p></div></div><div class="top"><p class="src"><a id="v:getSysAttrInt" class="def">getSysAttrInt</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Text-XML-HXT-Arrow-XmlState-TypeDefs.html#getSysAttrInt" class="link">Source</a> <a href="#v:getSysAttrInt" class="selflink">#</a></p><div class="doc"><p>read an int value from global state</p><pre>getSysAttrInt 0 myIntAttr</pre></div></div><div class="top"><p class="src"><a id="v:getConfigAttr" class="def">getConfigAttr</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-HXT-Arrow-XmlState.html#t:SysConfigList">SysConfigList</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="src/Text-XML-HXT-Arrow-XmlState-RunIOStateArrow.html#getConfigAttr" class="link">Source</a> <a href="#v:getConfigAttr" class="selflink">#</a></p></div><h1 id="g:5">Error Handling</h1><div class="top"><p class="src"><a id="v:clearErrStatus" class="def">clearErrStatus</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#clearErrStatus" class="link">Source</a> <a href="#v:clearErrStatus" class="selflink">#</a></p><div class="doc"><p>reset global error variable</p></div></div><div class="top"><p class="src"><a id="v:setErrStatus" class="def">setErrStatus</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#setErrStatus" class="link">Source</a> <a href="#v:setErrStatus" class="selflink">#</a></p><div class="doc"><p>set global error variable</p></div></div><div class="top"><p class="src"><a id="v:getErrStatus" class="def">getErrStatus</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#getErrStatus" class="link">Source</a> <a href="#v:getErrStatus" class="selflink">#</a></p><div class="doc"><p>read current global error status</p></div></div><div class="top"><p class="src"><a id="v:setErrMsgStatus" class="def">setErrMsgStatus</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#setErrMsgStatus" class="link">Source</a> <a href="#v:setErrMsgStatus" class="selflink">#</a></p><div class="doc"><p>raise the global error status level to that of the input tree</p></div></div><div class="top"><p class="src"><a id="v:setErrorMsgHandler" class="def">setErrorMsgHandler</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="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/System-IO.html#t:IO">IO</a> ()) -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#setErrorMsgHandler" class="link">Source</a> <a href="#v:setErrorMsgHandler" class="selflink">#</a></p><div class="doc"><p>set the error message handler and the flag for collecting the errors</p></div></div><div class="top"><p class="src"><a id="v:errorMsgStderr" class="def">errorMsgStderr</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#errorMsgStderr" class="link">Source</a> <a href="#v:errorMsgStderr" class="selflink">#</a></p><div class="doc"><p>the default error message handler: error output to stderr</p></div></div><div class="top"><p class="src"><a id="v:errorMsgCollect" class="def">errorMsgCollect</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#errorMsgCollect" class="link">Source</a> <a href="#v:errorMsgCollect" class="selflink">#</a></p><div class="doc"><p>error message handler for collecting errors</p></div></div><div class="top"><p class="src"><a id="v:errorMsgStderrAndCollect" class="def">errorMsgStderrAndCollect</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#errorMsgStderrAndCollect" class="link">Source</a> <a href="#v:errorMsgStderrAndCollect" class="selflink">#</a></p><div class="doc"><p>error message handler for output to stderr and collecting</p></div></div><div class="top"><p class="src"><a id="v:errorMsgIgnore" class="def">errorMsgIgnore</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#errorMsgIgnore" class="link">Source</a> <a href="#v:errorMsgIgnore" class="selflink">#</a></p><div class="doc"><p>error message handler for ignoring errors</p></div></div><div class="top"><p class="src"><a id="v:getErrorMessages" class="def">getErrorMessages</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#getErrorMessages" class="link">Source</a> <a href="#v:getErrorMessages" class="selflink">#</a></p><div class="doc"><p>if error messages are collected by the error handler for
processing these messages by the calling application,
this arrow reads the stored messages and clears the error message store</p></div></div><div class="top"><p class="src"><a id="v:filterErrorMsg" class="def">filterErrorMsg</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#filterErrorMsg" class="link">Source</a> <a href="#v:filterErrorMsg" class="selflink">#</a></p><div class="doc"><p>filter error messages from input trees and issue errors</p></div></div><div class="top"><p class="src"><a id="v:issueWarn" class="def">issueWarn</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#issueWarn" class="link">Source</a> <a href="#v:issueWarn" class="selflink">#</a></p><div class="doc"><p>generate a warnig message</p></div></div><div class="top"><p class="src"><a id="v:issueErr" class="def">issueErr</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#issueErr" class="link">Source</a> <a href="#v:issueErr" class="selflink">#</a></p><div class="doc"><p>generate an error message</p></div></div><div class="top"><p class="src"><a id="v:issueFatal" class="def">issueFatal</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#issueFatal" class="link">Source</a> <a href="#v:issueFatal" class="selflink">#</a></p><div class="doc"><p>generate a fatal error message, e.g. document not found</p></div></div><div class="top"><p class="src"><a id="v:issueExc" class="def">issueExc</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Exception-Base.html#t:SomeException">SomeException</a> b <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#issueExc" class="link">Source</a> <a href="#v:issueExc" class="selflink">#</a></p><div class="doc"><p>Default exception handler: issue a fatal error message and fail.</p><p>The parameter can be used to specify where the error occured</p></div></div><div class="top"><p class="src"><a id="v:setDocumentStatus" class="def">setDocumentStatus</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#setDocumentStatus" class="link">Source</a> <a href="#v:setDocumentStatus" class="selflink">#</a></p><div class="doc"><p>add the error level and the module where the error occured
to the attributes of a document root node and remove the children when level is greater or equal to <code><a href="Text-XML-HXT-DOM-TypeDefs.html#v:c_err">c_err</a></code>.
called by <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:setDocumentStatusFromSystemState">setDocumentStatusFromSystemState</a></code> when the system state indicates an error</p></div></div><div class="top"><p class="src"><a id="v:setDocumentStatusFromSystemState" class="def">setDocumentStatusFromSystemState</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#setDocumentStatusFromSystemState" class="link">Source</a> <a href="#v:setDocumentStatusFromSystemState" class="selflink">#</a></p><div class="doc"><p>check whether the error level attribute in the system state
is set to error, in this case the children of the document root are
removed and the module name where the error occured and the error level are added as attributes with <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:setDocumentStatus">setDocumentStatus</a></code>
else nothing is changed</p></div></div><div class="top"><p class="src"><a id="v:documentStatusOk" class="def">documentStatusOk</a> :: <a href="Text-XML-HXT-Arrow-XmlArrow.html#t:ArrowXml">ArrowXml</a> a => a <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="src/Text-XML-HXT-Arrow-XmlState-ErrorHandling.html#documentStatusOk" class="link">Source</a> <a href="#v:documentStatusOk" class="selflink">#</a></p><div class="doc"><p>check whether tree is a document root and the status attribute has a value less than <code><a href="Text-XML-HXT-DOM-TypeDefs.html#v:c_err">c_err</a></code></p></div></div><h1 id="g:6">Tracing</h1><div class="top"><p class="src"><a id="v:setTraceLevel" class="def">setTraceLevel</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#setTraceLevel" class="link">Source</a> <a href="#v:setTraceLevel" class="selflink">#</a></p><div class="doc"><p>set the global trace level</p></div></div><div class="top"><p class="src"><a id="v:getTraceLevel" class="def">getTraceLevel</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#getTraceLevel" class="link">Source</a> <a href="#v:getTraceLevel" class="selflink">#</a></p><div class="doc"><p>read the global trace level</p></div></div><div class="top"><p class="src"><a id="v:withTraceLevel" class="def">withTraceLevel</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b c -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b c <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#withTraceLevel" class="link">Source</a> <a href="#v:withTraceLevel" class="selflink">#</a></p><div class="doc"><p>run an arrow with a given trace level, the old trace level is restored after the arrow execution</p></div></div><div class="top"><p class="src"><a id="v:setTraceCmd" class="def">setTraceCmd</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</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/System-IO.html#t:IO">IO</a> ()) -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#setTraceCmd" class="link">Source</a> <a href="#v:setTraceCmd" class="selflink">#</a></p><div class="doc"><p>set the global trace command. This command does the trace output</p></div></div><div class="top"><p class="src"><a id="v:getTraceCmd" class="def">getTraceCmd</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> a b (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</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/System-IO.html#t:IO">IO</a> ()) <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#getTraceCmd" class="link">Source</a> <a href="#v:getTraceCmd" class="selflink">#</a></p><div class="doc"><p>acces the command for trace output</p></div></div><div class="top"><p class="src"><a id="v:trace" class="def">trace</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#trace" class="link">Source</a> <a href="#v:trace" class="selflink">#</a></p><div class="doc"><p>apply a trace arrow and issue message to stderr</p></div></div><div class="top"><p class="src"><a id="v:traceMsg" class="def">traceMsg</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#traceMsg" class="link">Source</a> <a href="#v:traceMsg" class="selflink">#</a></p><div class="doc"><p>issue a string message as trace</p></div></div><div class="top"><p class="src"><a id="v:traceValue" class="def">traceValue</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> (b -> <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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#traceValue" class="link">Source</a> <a href="#v:traceValue" class="selflink">#</a></p><div class="doc"><p>trace the current value transfered in a sequence of arrows.</p><p>The value is formated by a string conversion function. This is a substitute for
the old and less general traceString function</p></div></div><div class="top"><p class="src"><a id="v:traceString" class="def">traceString</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> (b -> <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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#traceString" class="link">Source</a> <a href="#v:traceString" class="selflink">#</a></p><div class="doc"><p>an old alias for <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:traceValue">traceValue</a></code></p></div></div><div class="top"><p class="src"><a id="v:traceSource" class="def">traceSource</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#traceSource" class="link">Source</a> <a href="#v:traceSource" class="selflink">#</a></p><div class="doc"><p>issue the source representation of a document if trace level >= 3</p><p>for better readability the source is formated with indentDoc</p></div></div><div class="top"><p class="src"><a id="v:traceTree" class="def">traceTree</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#traceTree" class="link">Source</a> <a href="#v:traceTree" class="selflink">#</a></p><div class="doc"><p>issue the tree representation of a document if trace level >= 4</p></div></div><div class="top"><p class="src"><a id="v:traceDoc" class="def">traceDoc</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="src/Text-XML-HXT-Arrow-XmlState-TraceHandling.html#traceDoc" class="link">Source</a> <a href="#v:traceDoc" class="selflink">#</a></p><div class="doc"><p>trace a main computation step
issue a message when trace level >= 1, issue document source if level >= 3, issue tree when level is >= 4</p></div></div><h1 id="g:7">Document Base</h1><div class="top"><p class="src"><a id="v:setBaseURI" class="def">setBaseURI</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#setBaseURI" class="link">Source</a> <a href="#v:setBaseURI" class="selflink">#</a></p><div class="doc"><p>set the base URI of a document, used e.g. for reading includes, e.g. external entities,
the input must be an absolute URI</p></div></div><div class="top"><p class="src"><a id="v:getBaseURI" class="def">getBaseURI</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#getBaseURI" class="link">Source</a> <a href="#v:getBaseURI" class="selflink">#</a></p><div class="doc"><p>read the base URI from the globale state</p></div></div><div class="top"><p class="src"><a id="v:changeBaseURI" class="def">changeBaseURI</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#changeBaseURI" class="link">Source</a> <a href="#v:changeBaseURI" class="selflink">#</a></p><div class="doc"><p>change the base URI with a possibly relative URI, can be used for
evaluating the xml:base attribute. Returns the new absolute base URI.
Fails, if input is not parsable with parseURIReference</p><p>see also: <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:setBaseURI">setBaseURI</a></code>, <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:mkAbsURI">mkAbsURI</a></code></p></div></div><div class="top"><p class="src"><a id="v:setDefaultBaseURI" class="def">setDefaultBaseURI</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-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#setDefaultBaseURI" class="link">Source</a> <a href="#v:setDefaultBaseURI" class="selflink">#</a></p><div class="doc"><p>set the default base URI, if parameter is null, the system base (<code> file:///<cwd>/ </code>) is used,
else the parameter, must be called before any document is read</p></div></div><div class="top"><p class="src"><a id="v:getDefaultBaseURI" class="def">getDefaultBaseURI</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#getDefaultBaseURI" class="link">Source</a> <a href="#v:getDefaultBaseURI" class="selflink">#</a></p><div class="doc"><p>get the default base URI</p></div></div><div class="top"><p class="src"><a id="v:runInLocalURIContext" class="def">runInLocalURIContext</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b c -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b c <a href="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#runInLocalURIContext" class="link">Source</a> <a href="#v:runInLocalURIContext" class="selflink">#</a></p><div class="doc"><p>remember base uri, run an arrow and restore the base URI, used with external entity substitution</p></div></div><h1 id="g:8">URI Manipulation</h1><div class="top"><p class="src"><a id="v:expandURIString" class="def">expandURIString</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-Maybe.html#t:Maybe">Maybe</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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#expandURIString" class="link">Source</a> <a href="#v:expandURIString" class="selflink">#</a></p><div class="doc"><p>compute the absolut URI for a given URI and a base URI</p></div></div><div class="top"><p class="src"><a id="v:expandURI" class="def">expandURI</a> :: <a href="Text-XML-HXT-Arrow-XmlArrow.html#t:ArrowXml">ArrowXml</a> a => 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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#expandURI" class="link">Source</a> <a href="#v:expandURI" class="selflink">#</a></p><div class="doc"><p>arrow variant of <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:expandURIString">expandURIString</a></code>, fails if <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:expandURIString">expandURIString</a></code> returns Nothing</p></div></div><div class="top"><p class="src"><a id="v:mkAbsURI" class="def">mkAbsURI</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s <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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#mkAbsURI" class="link">Source</a> <a href="#v:mkAbsURI" class="selflink">#</a></p><div class="doc"><p>arrow for expanding an input URI into an absolute URI using global base URI, fails if input is not a legal URI</p></div></div><div class="top"><p class="src"><a id="v:getFragmentFromURI" class="def">getFragmentFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#getFragmentFromURI" class="link">Source</a> <a href="#v:getFragmentFromURI" class="selflink">#</a></p><div class="doc"><p>arrow for computing the fragment component of an URI, fails if input is not a legal URI</p></div></div><div class="top"><p class="src"><a id="v:getPathFromURI" class="def">getPathFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#getPathFromURI" class="link">Source</a> <a href="#v:getPathFromURI" class="selflink">#</a></p><div class="doc"><p>arrow for computing the path component of an URI, fails if input is not a legal URI</p></div></div><div class="top"><p class="src"><a id="v:getPortFromURI" class="def">getPortFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#getPortFromURI" class="link">Source</a> <a href="#v:getPortFromURI" class="selflink">#</a></p><div class="doc"><p>arrow for selecting the port number of the URI without leading ':', fails if input is not a legal URI</p></div></div><div class="top"><p class="src"><a id="v:getQueryFromURI" class="def">getQueryFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#getQueryFromURI" class="link">Source</a> <a href="#v:getQueryFromURI" class="selflink">#</a></p><div class="doc"><p>arrow for computing the query component of an URI, fails if input is not a legal URI</p></div></div><div class="top"><p class="src"><a id="v:getRegNameFromURI" class="def">getRegNameFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#getRegNameFromURI" class="link">Source</a> <a href="#v:getRegNameFromURI" class="selflink">#</a></p><div class="doc"><p>arrow for selecting the registered name (host) of the URI, fails if input is not a legal URI</p></div></div><div class="top"><p class="src"><a id="v:getSchemeFromURI" class="def">getSchemeFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#getSchemeFromURI" class="link">Source</a> <a href="#v:getSchemeFromURI" class="selflink">#</a></p><div class="doc"><p>arrow for selecting the scheme (protocol) of the URI, fails if input is not a legal URI.</p><p>See Network.URI for URI components</p></div></div><div class="top"><p class="src"><a id="v:getUserInfoFromURI" class="def">getUserInfoFromURI</a> :: <a href="Control-Arrow-ArrowList.html#t:ArrowList">ArrowList</a> a => 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="src/Text-XML-HXT-Arrow-XmlState-URIHandling.html#getUserInfoFromURI" class="link">Source</a> <a href="#v:getUserInfoFromURI" class="selflink">#</a></p><div class="doc"><p>arrow for selecting the user info of the URI without trailing '@', fails if input is not a legal URI</p></div></div><h1 id="g:9">Mime Type Handling</h1><div class="top"><p class="src"><a id="v:getMimeTypeTable" class="def">getMimeTypeTable</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b <a href="Text-XML-HXT-DOM-MimeTypes.html#t:MimeTypeTable">MimeTypeTable</a> <a href="src/Text-XML-HXT-Arrow-XmlState-MimeTypeTable.html#getMimeTypeTable" class="link">Source</a> <a href="#v:getMimeTypeTable" class="selflink">#</a></p><div class="doc"><p>read the system mimetype table</p></div></div><div class="top"><p class="src"><a id="v:setMimeTypeTable" class="def">setMimeTypeTable</a> :: <a href="Text-XML-HXT-DOM-MimeTypes.html#t:MimeTypeTable">MimeTypeTable</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-MimeTypeTable.html#setMimeTypeTable" class="link">Source</a> <a href="#v:setMimeTypeTable" class="selflink">#</a></p><div class="doc"><p>set the table mapping of file extensions to mime types in the system state</p><p>Default table is defined in <code><a href="Text-XML-HXT-DOM.html#v:MimeTypeDefaults">MimeTypeDefaults</a></code>.
This table is used when reading loacl files, (file: protocol) to determine the mime type</p></div></div><div class="top"><p class="src"><a id="v:setMimeTypeTableFromFile" class="def">setMimeTypeTableFromFile</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:IOStateArrow">IOStateArrow</a> s b b <a href="src/Text-XML-HXT-Arrow-XmlState-MimeTypeTable.html#setMimeTypeTableFromFile" class="link">Source</a> <a href="#v:setMimeTypeTableFromFile" class="selflink">#</a></p><div class="doc"><p>set the table mapping of file extensions to mime types by an external config file</p><p>The config file must follow the conventions of <em>etc</em>mime.types on a debian linux system,
that means all empty lines and all lines starting with a # are ignored. The other lines
must consist of a mime type followed by a possible empty list of extensions.
The list of extenstions and mime types overwrites the default list in the system state
of the IOStateArrow</p></div></div><h1 id="g:10">System Configuration and Options</h1><div class="top"><p class="src"><a id="v:yes" class="def">yes</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="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#yes" class="link">Source</a> <a href="#v:yes" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:no" class="def">no</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="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#no" class="link">Source</a> <a href="#v:no" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withAcceptedMimeTypes" class="def">withAcceptedMimeTypes</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withAcceptedMimeTypes" class="link">Source</a> <a href="#v:withAcceptedMimeTypes" class="selflink">#</a></p><div class="doc"><p>Specify the set of accepted mime types.</p><p>All contents of documents for which the mime type is not found in this list
are discarded.</p></div></div><div class="top"><p class="src"><a id="v:withAddDefaultDTD" class="def">withAddDefaultDTD</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withAddDefaultDTD" class="link">Source</a> <a href="#v:withAddDefaultDTD" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withSysAttr" class="def">withSysAttr</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withSysAttr" class="link">Source</a> <a href="#v:withSysAttr" class="selflink">#</a></p><div class="doc"><p><code>withSysAttr key value</code> : store an arbitrary key value pair in system state</p></div></div><div class="top"><p class="src"><a id="v:withCanonicalize" class="def">withCanonicalize</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withCanonicalize" class="link">Source</a> <a href="#v:withCanonicalize" class="selflink">#</a></p><div class="doc"><p><code>withCanonicalize yes/no</code> : read option, canonicalize document, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:yes">yes</a></code></p></div></div><div class="top"><p class="src"><a id="v:withCompression" class="def">withCompression</a> :: (<a href="Text-XML-HXT-Arrow-XmlState-TypeDefs.html#t:CompressionFct">CompressionFct</a>, <a href="Text-XML-HXT-Arrow-XmlState-TypeDefs.html#t:DeCompressionFct">DeCompressionFct</a>) -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withCompression" class="link">Source</a> <a href="#v:withCompression" class="selflink">#</a></p><div class="doc"><p>Configure compression and decompression for binary serialization/deserialization.
First component is the compression function applied after serialization,
second the decompression applied before deserialization.</p></div></div><div class="top"><p class="src"><a id="v:withCheckNamespaces" class="def">withCheckNamespaces</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withCheckNamespaces" class="link">Source</a> <a href="#v:withCheckNamespaces" class="selflink">#</a></p><div class="doc"><p><code>withCheckNamespaces yes/no</code>: read option, check namespaces, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:no">no</a></code></p></div></div><div class="top"><p class="src"><a id="v:withDefaultBaseURI" class="def">withDefaultBaseURI</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withDefaultBaseURI" class="link">Source</a> <a href="#v:withDefaultBaseURI" class="selflink">#</a></p><div class="doc"><p><code>withDefaultBaseURI URI</code> , input option, set the default base URI</p><p>This option can be useful when parsing documents from stdin or contained in a string, and interpreting
relative URIs within the document</p></div></div><div class="top"><p class="src"><a id="v:withStrictDeserialize" class="def">withStrictDeserialize</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withStrictDeserialize" class="link">Source</a> <a href="#v:withStrictDeserialize" class="selflink">#</a></p><div class="doc"><p>Strict input for deserialization of binary data</p></div></div><div class="top"><p class="src"><a id="v:withEncodingErrors" class="def">withEncodingErrors</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withEncodingErrors" class="link">Source</a> <a href="#v:withEncodingErrors" class="selflink">#</a></p><div class="doc"><p><code>withEncodingErrors yes/no</code> : input option, ignore all encoding errors, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:no">no</a></code></p></div></div><div class="top"><p class="src"><a id="v:withErrors" class="def">withErrors</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withErrors" class="link">Source</a> <a href="#v:withErrors" class="selflink">#</a></p><div class="doc"><p><code>withErrors yes/no</code> : system option for suppressing error messages, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:no">no</a></code></p></div></div><div class="top"><p class="src"><a id="v:withFileMimeType" class="def">withFileMimeType</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withFileMimeType" class="link">Source</a> <a href="#v:withFileMimeType" class="selflink">#</a></p><div class="doc"><p>Force a given mime type for all file contents.</p><p>The mime type for file access will then not be computed by looking into a mime.types file</p></div></div><div class="top"><p class="src"><a id="v:withIgnoreNoneXmlContents" class="def">withIgnoreNoneXmlContents</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withIgnoreNoneXmlContents" class="link">Source</a> <a href="#v:withIgnoreNoneXmlContents" class="selflink">#</a></p><div class="doc"><p><code>withIgnoreNoneXmlContents yes/no</code> : input option, ignore document contents of none XML/HTML documents.</p><p>This option can be useful for implementing crawler like applications, e.g. an URL checker.
In those cases net traffic can be reduced.</p></div></div><div class="top"><p class="src"><a id="v:withIndent" class="def">withIndent</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withIndent" class="link">Source</a> <a href="#v:withIndent" class="selflink">#</a></p><div class="doc"><p><code>withIndent yes/no</code> : output option, indent document before output, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:no">no</a></code></p></div></div><div class="top"><p class="src"><a id="v:withInputEncoding" class="def">withInputEncoding</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withInputEncoding" class="link">Source</a> <a href="#v:withInputEncoding" class="selflink">#</a></p><div class="doc"><p><code>withInputEncoding encodingName</code> : input option</p><p>Set default document encoding (<code><a href="file:///usr/share/doc/libghc-hxt-unicode-doc/html/Data-String-EncodingNames.html#v:utf8">utf8</a></code>, <code><a href="file:///usr/share/doc/libghc-hxt-unicode-doc/html/Data-String-EncodingNames.html#v:isoLatin1">isoLatin1</a></code>, <code><a href="file:///usr/share/doc/libghc-hxt-unicode-doc/html/Data-String-EncodingNames.html#v:usAscii">usAscii</a></code>, <code><a href="file:///usr/share/doc/libghc-hxt-unicode-doc/html/Data-String-EncodingNames.html#v:iso8859_2">iso8859_2</a></code>, ... , <code><a href="file:///usr/share/doc/libghc-hxt-unicode-doc/html/Data-String-EncodingNames.html#v:iso8859_16">iso8859_16</a></code>, ...).
Only XML, HTML and text documents are decoded,
default decoding for XML/HTML is utf8, for text iso latin1 (no decoding).</p></div></div><div class="top"><p class="src"><a id="v:withInputOption" class="def">withInputOption</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withInputOption" class="link">Source</a> <a href="#v:withInputOption" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withInputOptions" class="def">withInputOptions</a> :: <a href="Text-XML-HXT-DOM-TypeDefs.html#t:Attributes">Attributes</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withInputOptions" class="link">Source</a> <a href="#v:withInputOptions" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withMimeTypeFile" class="def">withMimeTypeFile</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withMimeTypeFile" class="link">Source</a> <a href="#v:withMimeTypeFile" class="selflink">#</a></p><div class="doc"><p><code>withMimeTypeFile filename</code> : input option,
set the mime type table for <code>file:</code> documents by given file.
The format of this config file must be in the syntax of a debian linux "mime.types" config file</p></div></div><div class="top"><p class="src"><a id="v:withMimeTypeHandler" class="def">withMimeTypeHandler</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-HXT-Arrow-XmlState.html#t:IOSArrow">IOSArrow</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> <a href="Text-XML-HXT-DOM-TypeDefs.html#t:XmlTree">XmlTree</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withMimeTypeHandler" class="link">Source</a> <a href="#v:withMimeTypeHandler" class="selflink">#</a></p><div class="doc"><p>Specify a content handler for documents of a given mime type</p></div></div><div class="top"><p class="src"><a id="v:withNoEmptyElemFor" class="def">withNoEmptyElemFor</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withNoEmptyElemFor" class="link">Source</a> <a href="#v:withNoEmptyElemFor" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withXmlPi" class="def">withXmlPi</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withXmlPi" class="link">Source</a> <a href="#v:withXmlPi" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withOutputEncoding" class="def">withOutputEncoding</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withOutputEncoding" class="link">Source</a> <a href="#v:withOutputEncoding" class="selflink">#</a></p><div class="doc"><p><code>withOutputEncoding encoding</code> , output option,
default is the default input encoding or utf8, if input encoding is not set</p></div></div><div class="top"><p class="src"><a id="v:withOutputXML" class="def">withOutputXML</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withOutputXML" class="link">Source</a> <a href="#v:withOutputXML" class="selflink">#</a></p><div class="doc"><p><code>withOutputXML</code> : output option, default writing</p><p>Default is writing XML: quote special XML chars >,<,",',& where neccessary,
add XML processing instruction
and encode document with respect to <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:withOutputEncoding">withOutputEncoding</a></code></p></div></div><div class="top"><p class="src"><a id="v:withOutputHTML" class="def">withOutputHTML</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withOutputHTML" class="link">Source</a> <a href="#v:withOutputHTML" class="selflink">#</a></p><div class="doc"><p>Write XHTML: quote all special XML chars, use HTML entity refs or char refs for none ASCII chars</p></div></div><div class="top"><p class="src"><a id="v:withOutputXHTML" class="def">withOutputXHTML</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withOutputXHTML" class="link">Source</a> <a href="#v:withOutputXHTML" class="selflink">#</a></p><div class="doc"><p>Write XML: quote only special XML chars, don't substitute chars by HTML entities,
and don't generate empty elements for HTML elements,
which may contain any contents, e.g. <code><a href="script">src=...</a><a href="/script">/script</a></code> instead of <code><a href="script">src=... /</a></code></p></div></div><div class="top"><p class="src"><a id="v:withOutputPLAIN" class="def">withOutputPLAIN</a> :: <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withOutputPLAIN" class="link">Source</a> <a href="#v:withOutputPLAIN" class="selflink">#</a></p><div class="doc"><p>suppreses all char and entitiy substitution</p></div></div><div class="top"><p class="src"><a id="v:withParseByMimeType" class="def">withParseByMimeType</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withParseByMimeType" class="link">Source</a> <a href="#v:withParseByMimeType" class="selflink">#</a></p><div class="doc"><p><code>withParseByMimeType yes/no</code> : read option, select the parser by the mime type of the document
(pulled out of the HTTP header).</p><p>When the mime type is set to "text/html"
the configured HTML parser is taken, when it's set to
"text/xml" or "text/xhtml" the configured XML parser is taken.
If the mime type is something else, no further processing is performed,
the contents is given back to the application in form of a single text node.
If the default document encoding is set to isoLatin1, this even enables processing
of arbitray binary data.</p></div></div><div class="top"><p class="src"><a id="v:withParseHTML" class="def">withParseHTML</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withParseHTML" class="link">Source</a> <a href="#v:withParseHTML" class="selflink">#</a></p><div class="doc"><p><code>withParseHTML yes/no</code>: read option, use HTML parser, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:no">no</a></code> (use XML parser)</p></div></div><div class="top"><p class="src"><a id="v:withPreserveComment" class="def">withPreserveComment</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withPreserveComment" class="link">Source</a> <a href="#v:withPreserveComment" class="selflink">#</a></p><div class="doc"><p><code>withPreserveComment yes/no</code> : read option, preserve comments during canonicalization, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:no">no</a></code></p></div></div><div class="top"><p class="src"><a id="v:withProxy" class="def">withProxy</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-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withProxy" class="link">Source</a> <a href="#v:withProxy" class="selflink">#</a></p><div class="doc"><p><code>withProxy "host:port"</code> : input option, configure a proxy for HTTP access, e.g. www-cache:3128</p></div></div><div class="top"><p class="src"><a id="v:withRedirect" class="def">withRedirect</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withRedirect" class="link">Source</a> <a href="#v:withRedirect" class="selflink">#</a></p><div class="doc"><p><code>withRedirect yes/no</code> : input option, automatically follow redirected URIs, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:yes">yes</a></code></p></div></div><div class="top"><p class="src"><a id="v:withRemoveWS" class="def">withRemoveWS</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withRemoveWS" class="link">Source</a> <a href="#v:withRemoveWS" class="selflink">#</a></p><div class="doc"><p><code>withRemoveWS yes/no</code> : read and write option, remove all whitespace, used for document indentation, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:no">no</a></code></p></div></div><div class="top"><p class="src"><a id="v:withShowHaskell" class="def">withShowHaskell</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withShowHaskell" class="link">Source</a> <a href="#v:withShowHaskell" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withShowTree" class="def">withShowTree</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withShowTree" class="link">Source</a> <a href="#v:withShowTree" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withStrictInput" class="def">withStrictInput</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withStrictInput" class="link">Source</a> <a href="#v:withStrictInput" class="selflink">#</a></p><div class="doc"><p><code>withStrictInput yes/no</code> : input option, input of file and HTTP contents is read eagerly, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:no">no</a></code></p></div></div><div class="top"><p class="src"><a id="v:withSubstDTDEntities" class="def">withSubstDTDEntities</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withSubstDTDEntities" class="link">Source</a> <a href="#v:withSubstDTDEntities" class="selflink">#</a></p><div class="doc"><p><code>withSubstDTDEntities yes/no</code>: read option, substitute general entities defined in DTD, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:yes">yes</a></code>.
switching this option and the validate option off can lead to faster parsing, because then
there is no need to access the DTD</p></div></div><div class="top"><p class="src"><a id="v:withSubstHTMLEntities" class="def">withSubstHTMLEntities</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withSubstHTMLEntities" class="link">Source</a> <a href="#v:withSubstHTMLEntities" class="selflink">#</a></p><div class="doc"><p><code>withSubstHTMLEntities yes/no</code>: read option, substitute general entities defined in HTML DTD, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:no">no</a></code>.
switching this option on and the substDTDEntities and validate options off can lead to faster parsing
because there is no need to access a DTD, but still the HTML general entities are substituted</p></div></div><div class="top"><p class="src"><a id="v:withTextMode" class="def">withTextMode</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withTextMode" class="link">Source</a> <a href="#v:withTextMode" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:withTrace" class="def">withTrace</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withTrace" class="link">Source</a> <a href="#v:withTrace" class="selflink">#</a></p><div class="doc"><p><code>withTrace level</code> : system option, set the trace level, (0..4)</p></div></div><div class="top"><p class="src"><a id="v:withValidate" class="def">withValidate</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withValidate" class="link">Source</a> <a href="#v:withValidate" class="selflink">#</a></p><div class="doc"><p><code>withValidate yes/no</code>: read option, validate document against DTD, default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:yes">yes</a></code></p></div></div><div class="top"><p class="src"><a id="v:withWarnings" class="def">withWarnings</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="Text-XML-HXT-Arrow-XmlState.html#t:SysConfig">SysConfig</a> <a href="src/Text-XML-HXT-Arrow-XmlState-SystemConfig.html#withWarnings" class="link">Source</a> <a href="#v:withWarnings" class="selflink">#</a></p><div class="doc"><p><code>withWarnings yes/no</code> : system option, issue warnings during reading, HTML parsing and processing,
default is <code><a href="Text-XML-HXT-Arrow-XmlState.html#v:yes">yes</a></code></p></div></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>
|