HaXml-1.25.4: Utilities for manipulating XML documents

Safe HaskellSafe
LanguageHaskell98

Text.XML.HaXml.Schema.Environment

Contents

Synopsis

Build Maps from :

XSD types become top-level types in Haskell.

XSD element decls also become top-level types in Haskell.

Element groups get their own Haskell types too.

Attributes and attribute groups do not become types, they are

Resolve element/attribute references by inlining their names.

data Environment #

Constructors

Environment 

Fields

emptyEnv :: Environment #

An empty environment of XSD type mappings.

combineEnv :: Environment -> Environment -> Environment #

Combine two environments (e.g. read from different interface files)

mkEnvironment :: FilePath -> Schema -> Environment -> Environment #

Build an environment of XSD type mappings from a schema module.

gatherImports :: Schema -> [(FilePath, Maybe String)] #

Find all direct module dependencies.