Interval arithmetic for both open and closed intervals
|Latest on Hackage:||1.2.0|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
- use extended-reals >=0.2
EndPointis deprecated. Use
Realconstraint from comparison operators.
remove unnecessary Num constraint from bunch of constructors and operations:
hulls. Thanks to Tad Doxsee for pointing out that.
- use extended-reals package for representing endpoints
- add (experimental) comparison operators that produce witnesses:
hulls, intersections :: (Num r, Ord r) => [Interval r] -> Interval r
- fix a bug of
fix dependency issue with QuickCheck and test-framework-quickcheck2
simplestRationalWithin :: RealFrac r => Interval r -> Maybe Rational