|
| Text.XML.HXT.RelaxNG.DataTypeLibUtils |
|
|
| Description |
| exports helper functions for the integration of new datatype-libraries
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
|
|
|
|
|
|
|
|
|
|
|
| module Text.XML.HXT.DOM.Util |
|
| module Text.XML.HXT.RelaxNG.Utils |
|
| module Text.XML.HXT.RelaxNG.DataTypes |
|
|
| Unit for checks
|
|
|
| Zero for checks: Create an error message for an illegal value
|
|
|
| Perform check and generate error message on failure
|
|
| andCheck :: Check a -> Check a -> Check a | Source |
|
| Combine two checks
|
|
| withVal :: Check a -> (b -> a) -> Check b | Source |
|
|
|
Tests whether a "string" datatype value is between the lower and
upper bound of the datatype and matches all parameters.
All tests are performed on the string value.
- 1.parameter : datatype
- 2.parameter : lower bound of the datatype range
- 3.parameter : upper bound of the datatype range (-1 = no upper bound)
- 4.parameter : list of parameters
- 5.parameter : datatype value to be checked
- return : Just "Errormessage" in case of an error, else Nothing
|
|
|
Tests whether a "numeric" datatype value is between the lower and upper
bound of the datatype and matches all parameters.
First, the string value is parsed into a numeric representation.
If no error occur, all following tests are performed on the numeric value.
- 1.parameter : datatype
- 2.parameter : lower bound of the datatype range
- 3.parameter : upper bound of the datatype range (-1 = no upper bound)
- 4.parameter : list of parameters
- 5.parameter : datatype value to be checked
- return : Just "Errormessage" in case of an error, else Nothing
|
|
| Produced by Haddock version 2.3.0 |