Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Data.Range.NestedRange
Description
Nested Ranges are common in practical usage. They appear in such forms as library version numbers ("Version 1.4.5.6" for example). And it is very useful to be able to compare these ranges to one another. This module exists for the purpose of allowing these comparisons between nested ranges. The module builds upon the basic range concept from other parts of this library.
- data NestedRange a = NestedRange [[Range a]]
- inNestedRange :: Ord a => [a] -> NestedRange a -> Bool
Documentation
data NestedRange a Source
The Nested Range is a structure that in a nested form of many ranges where there can be multiple ranges at every level.
Constructors
NestedRange [[Range a]] |
inNestedRange :: Ord a => [a] -> NestedRange a -> Bool Source
Given a list of nested values and a nested range tell us wether the nested value exists inside the nested range.