HaXml-1.23.3: Utilities for manipulating XML documents

Safe HaskellSafe-Inferred

Text.XML.HaXml.Schema.HaskellTypeModel

Description

A type model for Haskell datatypes that bears a reasonable correspondence to the XSD type model.

Synopsis

Documentation

type Comment = Maybe String

Comments can be attached to most things, but not all of them will exist.

data Module

The whole Haskell module.

data Decl

There are essentially simple types, and complex types, each of which can be either restricted or extended. There are four kinds of complex type: choices, sequences, named groups, or a simple element with content.

Instances

Eq Decl 
Show Decl 

data Attribute

Constructors

Attribute 

Instances

Eq Attribute 
Show Attribute 

data Modifier

Constructors

Single 
Optional 
Range Occurs 

Instances

Eq Modifier 
Show Modifier 

data Restrict

Restrictions on simpleType

Instances

Eq Restrict 
Show Restrict 

mkModule :: String -> Schema -> [Decl] -> Module

A helper for building the formal Module structure.