Copyright | (c) NoviSci Inc 2020 |
---|---|
License | BSD3 |
Maintainer | bsaul@novisci.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data PairedInterval b a
- mkPairedInterval :: b -> Interval a -> PairedInterval b a
- pairData :: PairedInterval b a -> b
- intervals :: (Ord a, Show a) => [PairedInterval b a] -> [Interval a]
- makePairPredicate :: IntervalAlgebraic (PairedInterval b) a => ComparativePredicateOf (Interval a) -> ComparativePredicateOf b -> ComparativePredicateOf (PairedInterval b a)
Documentation
data PairedInterval b a Source #
An Interval a
paired with some other data of type b
.
Instances
mkPairedInterval :: b -> Interval a -> PairedInterval b a Source #
Make a paired interval.
pairData :: PairedInterval b a -> b Source #
Gets the data (i.e. non-interval) part of a PairedInterval
.
intervals :: (Ord a, Show a) => [PairedInterval b a] -> [Interval a] Source #
Gets the intervals from a list of paired intervals.
makePairPredicate :: IntervalAlgebraic (PairedInterval b) a => ComparativePredicateOf (Interval a) -> ComparativePredicateOf b -> ComparativePredicateOf (PairedInterval b a) Source #
Takes a predicate of intervals and a predicate on the data part of a paired interval to create a single predicate such that both input predicates should hold.