interface WithBounds : Type -> Type- Parameters: a
Constraints: Ord a
Methods:
minBound : a maxBound : a
Implementations:
WithBounds Bits8 WithBounds Bits16 WithBounds Bits32 WithBounds Bits64
minBound : WithBounds a => a- Totality: total
Visibility: public export maxBound : WithBounds a => a- Totality: total
Visibility: public export data RangeOf : Type -> Type A range of unicode code points.
Actually, it's a range of 32-bit numbers, but we use it for describing
ranges of codepoints in this library.
Totality: total
Visibility: export
Constructors:
Empty : RangeOf t Rng : t -> t -> RangeOf t
Hints:
Eq t => Eq (RangeOf t) Ord t => Ord (RangeOf t) Show t => Show (RangeOf t)
0 Range8 : Type- Totality: total
Visibility: public export 0 Range32 : Type- Totality: total
Visibility: public export empty : RangeOf t The empty range of codepoints.
Totality: total
Visibility: exportsingleton : t -> RangeOf t A range containing a single value
Totality: total
Visibility: exportisEmpty : RangeOf t -> Bool- Totality: total
Visibility: export range : Ord t => t -> t -> RangeOf t Generates a new range from `x` to `y` if `x` is strictly
smaller than `y`. Otherwise, the empty range is returned.
Totality: total
Visibility: exporthas : Ord t => RangeOf t -> t -> Bool True if the value is within the range.
Totality: total
Visibility: exportoverlap : Ord t => RangeOf t -> RangeOf t -> Bool True if the two ranges overlap
Totality: total
Visibility: exportspan : Ord t => RangeOf t -> RangeOf t -> RangeOf t Spans the range from the lowest to the largest bound of the two ranges.
Totality: total
Visibility: exportintersection : Ord t => RangeOf t -> RangeOf t -> RangeOf t Intersection of two ranges, if any.
Totality: total
Visibility: exportadjacent : Ord t => Neg t => RangeOf t -> RangeOf t -> Bool True if the two ranges are adjacent, that is, the upper bound
of one range is one less than the lower bound of the other.
Totality: total
Visibility: exportunion : Ord t => Neg t => RangeOf t -> RangeOf t -> Either (RangeOf t) (RangeOf t, RangeOf t) Union of the ranges.
If there are two results then they are guaranteed to be non-empty,
have a non-empty gap in between, and are in ascending order
Totality: total
Visibility: exportdifference : Ord t => Neg t => RangeOf t -> RangeOf t -> Either (RangeOf t) (RangeOf t, RangeOf t) Returns the result of subtracting the second range from the first.
If there are two results then they are guaranteed to be non-empty,
have a non-empty gap in between, and are in ascending order
Totality: total
Visibility: exportcodepoint : Range32 The range of all unicode code points.
Totality: total
Visibility: exportsurrogate : Range32 The range of surrogate pairs.
Totality: total
Visibility: exportcharRange : Char -> Char -> Range32 A range corresponding to a pair of characters.
Totality: total
Visibility: exportfullRange : WithBounds t => RangeOf t The full range. All 32 bit values are within it.
Totality: total
Visibility: exportisFull : WithBounds t => RangeOf t -> Bool A range is full if it contains every possible value.
Totality: total
Visibility: exportlowerBound : WithBounds t => RangeOf t -> t- Totality: total
Visibility: export upperBound : WithBounds t => RangeOf t -> t- Totality: total
Visibility: export