HaXml-1.24: Utilities for manipulating XML documents

Safe HaskellSafe-Inferred

Text.XML.HaXml.Schema.PrimitiveTypes

Contents

Synopsis

Type class for parsing simpleTypes

module Text.Parse

Primitive XSD datatypes

type Boolean = Bool

data Float

Single-precision floating point numbers. It is desirable that this type be at least equal in range and precision to the IEEE single-precision type.

data Double

Double-precision floating point numbers. It is desirable that this type be at least equal in range and precision to the IEEE double-precision type.

data QName

A QName is a (possibly) qualified name, in the sense of XML namespaces.

Constructors

N Name 
QN Namespace Name 

Instances

data Time

Constructors

Time String 

data Date

Constructors

Date String 

data GYear

Constructors

GYear String 

data GDay

Constructors

GDay String 

Derived, yet builtin, datatypes

newtype Token

Constructors

Token String 

newtype Name

Constructors

Name String 

newtype ID

Constructors

ID String 

newtype IDREF

Constructors

IDREF String 

newtype Long

Constructors

Long Int64 

data Int

A fixed-precision integer type with at least the range [-2^29 .. 2^29-1]. The exact range for a given implementation can be determined by using minBound and maxBound from the Bounded class.

newtype Short

Constructors

Short Int16 

newtype Byte

Constructors

Byte Int8