HaXml-1.23.3: Utilities for manipulating XML documents

Safe HaskellSafe-Inferred

Text.XML.HaXml.Schema.PrimitiveTypes

Contents

Synopsis

Type class for parsing simpleTypes

class SimpleType a where

Ultimately, an XML parser will find some plain text as the content of a simpleType, which will need to be parsed. We use a TextParser, because values of simpleTypes can also be given elsewhere, e.g. as attribute values in an XSD definition, e.g. to restrict the permissible values of the simpleType. Such restrictions are therefore implemented as layered parsers.

Methods

acceptingParser :: TextParser a

simpleTypeText :: a -> String

module Text.Parse

Primitive XSD datatypes

newtype XsdString

Constructors

XsdString String 

type Boolean = Bool

data HexBinary

Constructors

HexBinary String 

data Float

Instances

Enum Float 
Eq Float 
Floating Float 
Fractional Float 
Num Float 
Ord Float 
Read Float 
Real Float 
RealFloat Float 
RealFrac Float 
Show Float 
Parse Float 
SimpleType Float 
HTypeable Float 
XmlContent Float 
SchemaType Float 

data Decimal

Constructors

Decimal Double 

data Double

Instances

Enum Double 
Eq Double 
Floating Double 
Fractional Double 
Num Double 
Ord Double 
Read Double 
Real Double 
RealFloat Double 
RealFrac Double 
Show Double 
Parse Double 
SimpleType Double 
HTypeable Double 
XmlContent Double 
SchemaType Double 

data AnyURI

Constructors

AnyURI String 

data QName

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

Constructors

N Name 
QN Namespace Name 

Instances

Eq QName 
Ord QName 
Show QName 

data NOTATION

Constructors

NOTATION String 

data DateTime

Constructors

DateTime String 

data Time

Constructors

Time String 

Instances

data Date

Constructors

Date String 

Instances

data GYearMonth

Constructors

GYearMonth String 

data GYear

Constructors

GYear String 

Instances

data GMonthDay

Constructors

GMonthDay String 

data GDay

Constructors

GDay String 

Instances

data GMonth

Constructors

GMonth String 

Derived, yet builtin, datatypes

newtype Token

Constructors

Token String 

Instances

newtype Language

Constructors

Language String 

newtype Name

Constructors

Name String 

Instances

newtype NCName

Constructors

NCName String 

newtype ID

Constructors

ID String 

Instances

newtype IDREF

Constructors

IDREF String 

Instances

newtype IDREFS

Constructors

IDREFS String 

newtype ENTITY

Constructors

ENTITY String 

newtype ENTITIES

Constructors

ENTITIES String 

newtype NMTOKEN

Constructors

NMTOKEN String 

newtype NMTOKENS

Constructors

NMTOKENS String 

newtype Long

Constructors

Long Int64 

Instances

data Int

Instances

Bounded Int 
Enum Int 
Eq Int 
Integral Int 
Num Int 
Ord Int 
Read Int 
Real Int 
Show Int 
Parse Int 
SimpleType Int 
HTypeable Int 
XmlContent Int 
SchemaType Int 

newtype Short

Constructors

Short Int16 

Instances

newtype Byte

Constructors

Byte Int8 

Instances

newtype UnsignedLong

Constructors

ULong Word64 

newtype UnsignedInt

Constructors

UInt Word32