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

Safe HaskellSafe
LanguageHaskell98

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.

Synopsis

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.