Int package:HaXml
A fixed-precision integer type with at least the range
[-2^29 ..
2^29-1]. The exact range for a given implementation can be
determined by using
minBound and
maxBound from the
Bounded class.
Arbitrary precision integers. In contrast with fixed-size integral
types such as
Int, the
Integer type represents the
entire infinite range of integers.
Integers are stored in a kind of sign-magnitude form, hence do not
expect two's complement form when using bit operations.
If the value is small (fit into an
Int),
IS constructor
is used. Otherwise
Integer and
IN constructors are used
to store a
BigNat representing respectively the positive or the
negative value magnitude.
Invariant:
Integer and
IN are used iff value doesn't fit
in
IS
In interspersed a f b, label each result of f with
the string a, except for the last one which is labelled with
the string b.
Run an XsdParser on the child contents of the given element (i.e. not
in the current monadic content sequence), filtering the children
before parsing, and checking that the contents are exhausted, before
returning the calculated value within the current parser context.
Run an XMLParser on the contents of the given element (i.e. not on the
current monadic content sequence), checking that the contents are
exhausted, before returning the calculated value within the current
parser context.
Return the printable string for a Name, i.e. attaching a prefix for
its namespace (if it has one).