symantic-xml-2.0.0.20200523: Library for reading, validating and writing XML.

Safe HaskellNone
LanguageHaskell2010

Symantic.XML.Language

Documentation

class Textable repr where Source #

Minimal complete definition

Nothing

Associated Types

type TextConstraint repr a :: Constraint Source #

Methods

text :: Transformable repr => XML (UnTrans repr) => TextConstraint (UnTrans repr) a => repr (a -> k) k Source #

text :: TextConstraint repr a => repr (a -> k) k Source #

Instances
Textable RNCWriteSyn Source # 
Instance details

Defined in Symantic.XML.RelaxNG.Compact.Write

Associated Types

type TextConstraint RNCWriteSyn a :: Constraint Source #

Textable Write Source # 
Instance details

Defined in Symantic.XML.Write

Associated Types

type TextConstraint Write a :: Constraint Source #

Methods

text :: TextConstraint Write a => Write (a -> k) k Source #

Textable TreeData Source # 
Instance details

Defined in Symantic.XML.Tree.Data

Associated Types

type TextConstraint TreeData a :: Constraint Source #

Methods

text :: TextConstraint TreeData a => TreeData (a -> k) k Source #

Ord err => Textable (Read FileSourced err) Source # 
Instance details

Defined in Symantic.XML.Read

Associated Types

type TextConstraint (Read FileSourced err) a :: Constraint Source #

Methods

text :: TextConstraint (Read FileSourced err) a => Read FileSourced err (a -> k) k Source #

class (Composable repr, Tupable repr, Eitherable repr, Textable repr) => XML repr where Source #

Minimal complete definition

Nothing

Methods

namespace :: Maybe NCName -> Namespace -> repr k k Source #

(namespace p ns) declares a namespace prefix (p) to be used for the Namespace (ns). Or make (ns) the default namespace if (p) is Nothing.

namespace :: Transformable repr => XML (UnTrans repr) => Maybe NCName -> Namespace -> repr k k Source #

(namespace p ns) declares a namespace prefix (p) to be used for the Namespace (ns). Or make (ns) the default namespace if (p) is Nothing.

element :: Transformable repr => XML (UnTrans repr) => QName -> repr a k -> repr a k Source #

element :: QName -> repr a k -> repr a k Source #

attribute :: Transformable repr => XML (UnTrans repr) => QName -> repr a k -> repr a k Source #

attribute :: QName -> repr a k -> repr a k Source #

pi :: Transformable repr => XML (UnTrans repr) => PName -> repr (Text -> k) k Source #

pi :: PName -> repr (Text -> k) k Source #

literal :: Transformable repr => XML (UnTrans repr) => Text -> repr k k Source #

literal :: Text -> repr k k Source #

comment :: Transformable repr => XML (UnTrans repr) => repr (Text -> k) k Source #

comment :: repr (Text -> k) k Source #

cdata :: Transformable repr => XML (UnTrans repr) => repr (Text -> k) k Source #

cdata :: repr (Text -> k) k Source #

Instances
XML RNCWriteSyn Source # 
Instance details

Defined in Symantic.XML.RelaxNG.Compact.Write

XML Write Source # 
Instance details

Defined in Symantic.XML.Write

Methods

namespace :: Maybe NCName -> Namespace -> Write k k Source #

element :: QName -> Write a k -> Write a k Source #

attribute :: QName -> Write a k -> Write a k Source #

pi :: PName -> Write (Text -> k) k Source #

literal :: Text -> Write k k Source #

comment :: Write (Text -> k) k Source #

cdata :: Write (Text -> k) k Source #

XML TreeData Source # 
Instance details

Defined in Symantic.XML.Tree.Data

(Ord err, ReadConstraints src, Textable (Read src err)) => XML (Read src err) Source # 
Instance details

Defined in Symantic.XML.Read

Methods

namespace :: Maybe NCName -> Namespace -> Read src err k k Source #

element :: QName -> Read src err a k -> Read src err a k Source #

attribute :: QName -> Read src err a k -> Read src err a k Source #

pi :: PName -> Read src err (Text -> k) k Source #

literal :: Text -> Read src err k k Source #

comment :: Read src err (Text -> k) k Source #

cdata :: Read src err (Text -> k) k Source #