Download Manual
Transcript
Type of converters for primitive values type XOptConv a = XmlConv NotRepeatable NoElem a Type of converters for optional values type XRepConv a = XmlConv NotRepeatable NoElem a Type of converters for repetitions Exported functions: xmlReads :: XmlConv a b c → ([(String,String)],[XmlExp]) → (c,([(String,String)],[XmlExp])) Takes an XML converter and returns a function that consumes XML data and returns the remaining data along with the result. xmlShows :: XmlConv a b c → c → ([(String,String)],[XmlExp]) → ([(String,String)],[XmlExp]) Takes an XML converter and returns a function that extends XML data with the representation of a given value. xmlRead :: XmlConv a Elem b → XmlExp → b Takes an XML converter and an XML expression and returns a corresponding Curry value. xmlShow :: XmlConv a Elem b → b → XmlExp Takes an XML converter and a value and returns a corresponding XML expression. int :: XmlConv NotRepeatable NoElem Int Creates an XML converter for integer values. Integer values must not be used in repetitions and do not represent XML elements. float :: XmlConv NotRepeatable NoElem Float Creates an XML converter for float values. Float values must not be used in repetitions and do not represent XML elements. char :: XmlConv NotRepeatable NoElem Char Creates an XML converter for character values. Character values must not be used in repetitions and do not represent XML elements. string :: XmlConv NotRepeatable NoElem String Creates an XML converter for string values. String values must not be used in repetitions and do not represent XML elements. 233