range- This has a bunch of code for specifying and managing ranges in your code.

Safe HaskellNone



Nested Ranges are common in practical usage. They appear in such forms as library version numbers ("Version" 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 Source

The Nested Range is a structure that in a nested form of many ranges where there can be multiple ranges at every level.


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.