packages feed

interval-algebra 0.6.0 → 0.6.1

raw patch · 3 files changed

+6/−2 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- IntervalAlgebra.PairedInterval: instance (GHC.Classes.Ord a, GHC.Show.Show a, GHC.Show.Show b) => GHC.Show.Show (IntervalAlgebra.PairedInterval.PairedInterval b a)

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for interval-algebra +## 0.6.1++* Removes the deriving `Show` instance for `PairedInterval`s so people can customize their own instances.+ ## 0.6.0  * Generalizes the `IntervalAlgebraic` class to work on any data structure that *contains* an interval (not just intervals themselves). This is possible by modification to the `Intervallic` class, which now works in part as lens with `getInterval` and `setInterval` functions. This change allows users to define their own type which contains an interval get all the interval algebraic operation on that new type. The utility of this generalization can be seen in the `PairedInterval` module, which defines a parameterized type for interval *paired* with some other data.
interval-algebra.cabal view
@@ -1,6 +1,6 @@ cabal-version:  2.2 name:           interval-algebra-version:        0.6.0+version:        0.6.1 synopsis:       An implementation of Allen's interval algebra for temporal logic description:    Please see the README on GitHub at <https://github.com/novisci/interval-algebra> category:       Algebra,Time
src/IntervalAlgebra/PairedInterval.hs view
@@ -29,7 +29,7 @@  -- | An @Interval a@ paired with some other data of type @b@. newtype PairedInterval b a = PairedInterval (Interval a, b)-    deriving (Eq, Show)+    deriving (Eq)  instance (Ord a) => Intervallic (PairedInterval b) a where     getInterval (PairedInterval x)        = fst x