/usr/share/doc/libghc-haxml-doc/html/Text-XML-HaXml-Schema-Environment.html is in libghc-haxml-doc 1:1.25.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Text.XML.HaXml.Schema.Environment</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Text-XML-HaXml-Schema-Environment.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-XML-HaXml-Schema-Environment.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HaXml-1.25.4: Utilities for manipulating XML documents</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Text.XML.HaXml.Schema.Environment</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Build Maps from :</a></li><li><a href="#g:2">XSD types become top-level types in Haskell.</a></li><li><a href="#g:3">XSD element decls also become top-level types in Haskell.</a></li><li><a href="#g:4">Element groups get their own Haskell types too.</a></li><li><a href="#g:5">Attributes and attribute groups do not become types, they are</a></li><li><a href="#g:6">Resolve element/attribute references by inlining their names.</a></li></ul></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:Environment">Environment</a> = <a href="#v:Environment">Environment</a> {<ul class="subs"><li><a href="#v:env_type">env_type</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:SimpleType">SimpleType</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:ComplexType">ComplexType</a>)</li><li><a href="#v:env_allTypes">env_allTypes</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:SimpleType">SimpleType</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:ComplexType">ComplexType</a>)</li><li><a href="#v:env_element">env_element</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:ElementDecl">ElementDecl</a></li><li><a href="#v:env_attribute">env_attribute</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:AttributeDecl">AttributeDecl</a></li><li><a href="#v:env_group">env_group</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:Group">Group</a></li><li><a href="#v:env_attrgroup">env_attrgroup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:AttrGroup">AttrGroup</a></li><li><a href="#v:env_namespace">env_namespace</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li><a href="#v:env_extendty">env_extendty</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> [(<a href="Text-XML-HaXml-Types.html#t:QName">QName</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a>)]</li><li><a href="#v:env_substGrp">env_substGrp</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> [(<a href="Text-XML-HaXml-Types.html#t:QName">QName</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a>)]</li><li><a href="#v:env_typeloc">env_typeloc</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a></li></ul>}</li><li class="src short"><a href="#v:emptyEnv">emptyEnv</a> :: <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a></li><li class="src short"><a href="#v:combineEnv">combineEnv</a> :: <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -> <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -> <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a></li><li class="src short"><a href="#v:mkEnvironment">mkEnvironment</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:Schema">Schema</a> -> <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -> <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a></li><li class="src short"><a href="#v:gatherImports">gatherImports</a> :: <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:Schema">Schema</a> -> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>)]</li></ul></div><div id="interface"><h1 id="g:1">Build Maps from :</h1><h1 id="g:2">XSD types become top-level types in Haskell.</h1><h1 id="g:3">XSD element decls also become top-level types in Haskell.</h1><h1 id="g:4">Element groups get their own Haskell types too.</h1><h1 id="g:5">Attributes and attribute groups do not become types, they are</h1><h1 id="g:6">Resolve element/attribute references by inlining their names.</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Environment" class="def">Environment</a> <a href="src/Text-XML-HaXml-Schema-Environment.html#Environment" class="link">Source</a> <a href="#t:Environment" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Environment" class="def">Environment</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:env_type" class="def">env_type</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:SimpleType">SimpleType</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:ComplexType">ComplexType</a>)</dfn><div class="doc"><p>type definitions in scope</p></div></li><li><dfn class="src"><a id="v:env_allTypes" class="def">env_allTypes</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:SimpleType">SimpleType</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:ComplexType">ComplexType</a>)</dfn><div class="doc"><p>all type definitions, regardless of scope</p></div></li><li><dfn class="src"><a id="v:env_element" class="def">env_element</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:ElementDecl">ElementDecl</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:env_attribute" class="def">env_attribute</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:AttributeDecl">AttributeDecl</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:env_group" class="def">env_group</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:Group">Group</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:env_attrgroup" class="def">env_attrgroup</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:AttrGroup">AttrGroup</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:env_namespace" class="def">env_namespace</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></dfn><div class="doc empty"> </div></li><li><dfn class="src"><a id="v:env_extendty" class="def">env_extendty</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> [(<a href="Text-XML-HaXml-Types.html#t:QName">QName</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a>)]</dfn><div class="doc"><p>supertype -> subtypes</p></div></li><li><dfn class="src"><a id="v:env_substGrp" class="def">env_substGrp</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> [(<a href="Text-XML-HaXml-Types.html#t:QName">QName</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a>)]</dfn><div class="doc"><p>substitution groups</p></div></li><li><dfn class="src"><a id="v:env_typeloc" class="def">env_typeloc</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a></dfn><div class="doc"><p>where type is defined</p></div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:emptyEnv" class="def">emptyEnv</a> :: <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> <a href="src/Text-XML-HaXml-Schema-Environment.html#emptyEnv" class="link">Source</a> <a href="#v:emptyEnv" class="selflink">#</a></p><div class="doc"><p>An empty environment of XSD type mappings.</p></div></div><div class="top"><p class="src"><a id="v:combineEnv" class="def">combineEnv</a> :: <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -> <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -> <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> <a href="src/Text-XML-HaXml-Schema-Environment.html#combineEnv" class="link">Source</a> <a href="#v:combineEnv" class="selflink">#</a></p><div class="doc"><p>Combine two environments (e.g. read from different interface files)</p></div></div><div class="top"><p class="src"><a id="v:mkEnvironment" class="def">mkEnvironment</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -> <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:Schema">Schema</a> -> <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -> <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> <a href="src/Text-XML-HaXml-Schema-Environment.html#mkEnvironment" class="link">Source</a> <a href="#v:mkEnvironment" class="selflink">#</a></p><div class="doc"><p>Build an environment of XSD type mappings from a schema module.</p></div></div><div class="top"><p class="src"><a id="v:gatherImports" class="def">gatherImports</a> :: <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:Schema">Schema</a> -> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>)] <a href="src/Text-XML-HaXml-Schema-Environment.html#gatherImports" class="link">Source</a> <a href="#v:gatherImports" class="selflink">#</a></p><div class="doc"><p>Find all direct module dependencies.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|