@hackage interval-algebra2.0.2
An implementation of Allen's interval algebra for temporal logic
Categories
License
BSD-3-Clause
Maintainer
bsaul@novisci.com
Links
Versions
Installation
Dependencies (13)
- QuickCheck ^>=2.14
- base >=4.7 && <5
- binary ^>=0.8
- containers ^>=0.6
- deepseq >=1.1 && <1.5
- foldl ^>=1.4 Show all…
Dependents (1)
@hackage/hasklepias
interval-algebra
The interval-algebra package implements Allen's interval algebra in Haskell. The main module provides data types and related classes for the interval-based temporal logic described in Allen (1983) and axiomatized in Allen and Hayes (1987). A good primer on Allen's algebra can be found here.
Design
The module is built around three typeclasses designed to separate concerns of constructing, relating, and combining types that contain Intervals:
Intervallicprovides an interface to the data structures which contain anInterval.IntervalCombinableprovides an interface to methods of combining twoIntervals.IntervalSizeableprovides methods for measuring and modifying the size of an interval.
An advantage of nested typeclass design is that developers can define an Interval of type a with just the amount of structure that they need.
Axiom tests
The package includes tests that the functions of the IntervalAlgebraic typeclass meets the axioms for intervals (not points) as laid out in Allen and Hayes (1987).