ideas-1.3.1: Feedback services for intelligent tutoring systems

Maintainerbastiaan.heeren@ou.nl
Stabilityprovisional
Portabilityportable (depends on ghc)
Safe HaskellNone
LanguageHaskell98

Ideas.Text.XML

Description

A datatype, parser, and pretty printer for XML documents. Re-exports functions defined elsewhere.

Documentation

data Element Source

Constructors

Element 

Instances

class InXML a where Source

Minimal complete definition

toXML, fromXML

Methods

toXML :: a -> XML Source

listToXML :: [a] -> XML Source

fromXML :: Monad m => XML -> m a Source

listFromXML :: Monad m => XML -> m [a] Source

data Attribute Source

Constructors

Name := String 

class Monoid a => BuildXML a where Source

Minimal complete definition

(.=.), unescaped, builder, tag

Methods

(.=.) :: String -> String -> a infix 3 Source

unescaped :: String -> a Source

builder :: Element -> a Source

tag :: String -> a -> a Source

string :: String -> a Source

text :: Show s => s -> a Source

element :: String -> [a] -> a Source

emptyTag :: String -> a Source

Instances

munless :: Monoid a => Bool -> a -> a Source

mwhen :: Monoid a => Bool -> a -> a Source