timemap 0.0.3 → 0.0.4
raw patch · 2 files changed
+12/−1 lines, 2 files
Files
- src/Data/TimeMap.hs +11/−0
- timemap.cabal +1/−1
src/Data/TimeMap.hs view
@@ -31,6 +31,7 @@ , adjust , adjustWithTime , delete+ , touch , -- * Query lookup , timeOf@@ -226,6 +227,16 @@ pure ((), F.Remove) {-# INLINEABLE delete #-}+++-- | Resets the key to the current time, and fails silently when the key isn't+-- present.+touch :: ( Hashable k+ , Eq k+ ) => k -> TimeMap k a -> IO ()+touch = adjust id++{-# INLINEABLE touch #-} filter :: ( Hashable k , Eq k
timemap.cabal view
@@ -1,5 +1,5 @@ Name: timemap-Version: 0.0.3+Version: 0.0.4 Author: Athan Clark <athan.clark@gmail.com> Maintainer: Athan Clark <athan.clark@gmail.com> License: BSD3