This file is indexed.

/usr/share/doc/libghc-haxml-doc/html/Text-XML-HaXml-Schema-Environment.html is in libghc-haxml-doc 1:1.23.3-2build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!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 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.23.3: Utilities for manipulating XML documents</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe-Inferred</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="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li><a href="#v:env_extendty">env_extendty</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>)]</li><li><a href="#v:env_substGrp">env_substGrp</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>)]</li><li><a href="#v:env_typeloc">env_typeloc</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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> -&gt; <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -&gt; <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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:Schema">Schema</a> -&gt; <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -&gt; <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> -&gt; [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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 name="t:Environment" class="def">Environment</a>  <a href="src/Text-XML-HaXml-Schema-Environment.html#Environment" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Environment" class="def">Environment</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:env_type" class="def">env_type</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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>)</dt><dd class="doc"><p>type definitions in scope
</p></dd><dt class="src"><a name="v:env_allTypes" class="def">env_allTypes</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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>)</dt><dd class="doc"><p>all type definitions, regardless of scope
</p></dd><dt class="src"><a name="v:env_element" class="def">env_element</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:env_attribute" class="def">env_attribute</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:env_group" class="def">env_group</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:env_attrgroup" class="def">env_attrgroup</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:env_namespace" class="def">env_namespace</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:env_extendty" class="def">env_extendty</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>)]</dt><dd class="doc"><p>supertype -&gt; subtypes
</p></dd><dt class="src"><a name="v:env_substGrp" class="def">env_substGrp</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>)]</dt><dd class="doc"><p>substitution groups
</p></dd><dt class="src"><a name="v:env_typeloc" class="def">env_typeloc</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></dt><dd class="doc"><p>where type is defined
</p></dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><a name="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></p><div class="doc"><p>An empty environment of XSD type mappings.
</p></div></div><div class="top"><p class="src"><a name="v:combineEnv" class="def">combineEnv</a> :: <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -&gt; <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -&gt; <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></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 name="v:mkEnvironment" class="def">mkEnvironment</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:Schema">Schema</a> -&gt; <a href="Text-XML-HaXml-Schema-Environment.html#t:Environment">Environment</a> -&gt; <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></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 name="v:gatherImports" class="def">gatherImports</a> :: <a href="Text-XML-HaXml-Schema-XSDTypeModel.html#t:Schema">Schema</a> -&gt; [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>)]<a href="src/Text-XML-HaXml-Schema-Environment.html#gatherImports" class="link">Source</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.13.2</p></div></body></html>