ranges-0.1

Data.Ranges

Synopsis

range :: Ord a => a -> a -> Range aSource

Construct a Range from a lower and upper bound.

Range

ranges :: Ord a => [(a, a)] -> Ranges aSource

Construct a Ranges from a list of lower and upper bounds.

Ranges

data Ord a => Range a Source

data Ord a => Ranges a Source

inRange :: Ord a => a -> Range a -> BoolSource

Tests if a given range contains a particular value.

inRanges :: Ord a => a -> Ranges a -> BoolSource

Tests if any of the ranges contains a particular value.