HaXml-1.25.6: Utilities for manipulating XML documents
Safe HaskellSafe-Inferred
LanguageHaskell98

Text.XML.HaXml.Schema.HaskellTypeModel

Description

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

Synopsis

Documentation

data Restrict Source #

Restrictions on simpleType

Instances

Instances details
Eq Restrict Source # 
Instance details

Defined in Text.XML.HaXml.Schema.HaskellTypeModel

Methods

(==) :: Restrict -> Restrict -> Bool

(/=) :: Restrict -> Restrict -> Bool

Show Restrict Source # 
Instance details

Defined in Text.XML.HaXml.Schema.HaskellTypeModel

Methods

showsPrec :: Int -> Restrict -> ShowS

show :: Restrict -> String

showList :: [Restrict] -> ShowS

data Modifier Source #

Constructors

Single 
Optional 
Range Occurs 

Instances

Instances details
Eq Modifier Source # 
Instance details

Defined in Text.XML.HaXml.Schema.HaskellTypeModel

Methods

(==) :: Modifier -> Modifier -> Bool

(/=) :: Modifier -> Modifier -> Bool

Show Modifier Source # 
Instance details

Defined in Text.XML.HaXml.Schema.HaskellTypeModel

Methods

showsPrec :: Int -> Modifier -> ShowS

show :: Modifier -> String

showList :: [Modifier] -> ShowS

data Attribute Source #

Constructors

Attribute 

Instances

Instances details
Eq Attribute Source # 
Instance details

Defined in Text.XML.HaXml.Schema.HaskellTypeModel

Methods

(==) :: Attribute -> Attribute -> Bool

(/=) :: Attribute -> Attribute -> Bool

Show Attribute Source # 
Instance details

Defined in Text.XML.HaXml.Schema.HaskellTypeModel

Methods

showsPrec :: Int -> Attribute -> ShowS

show :: Attribute -> String

showList :: [Attribute] -> ShowS

data Element Source #

Instances

Instances details
Eq Element Source # 
Instance details

Defined in Text.XML.HaXml.Schema.HaskellTypeModel

Methods

(==) :: Element -> Element -> Bool

(/=) :: Element -> Element -> Bool

Show Element Source # 
Instance details

Defined in Text.XML.HaXml.Schema.HaskellTypeModel

Methods

showsPrec :: Int -> Element -> ShowS

show :: Element -> String

showList :: [Element] -> ShowS

data Decl Source #

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

Instances details
Eq Decl Source # 
Instance details

Defined in Text.XML.HaXml.Schema.HaskellTypeModel

Methods

(==) :: Decl -> Decl -> Bool

(/=) :: Decl -> Decl -> Bool

Show Decl Source # 
Instance details

Defined in Text.XML.HaXml.Schema.HaskellTypeModel

Methods

showsPrec :: Int -> Decl -> ShowS

show :: Decl -> String

showList :: [Decl] -> ShowS

data Module Source #

The whole Haskell module.

type Comment = Maybe String Source #

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

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

A helper for building the formal Module structure.