packages feed

Concurrent-Cache 0.2.2.0 → 0.2.2.1

raw patch · 2 files changed

+4/−4 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Concurrent-Cache.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                Concurrent-Cache-version:             0.2.2.0+version:             0.2.2.1 synopsis:            A Cached variable for IO functions. description:         This package allows for caching IO functions, either on a                      timeout or designed to only fetch once.
Control/Concurrent/Cache.hs view
@@ -8,7 +8,8 @@ data Timeout = TimeSinceCreation Int | TimeSinceLastRead Int  type TimedCachedDataMVar a = MVar (Maybe ThreadId, IO a, Maybe a) -data CachedData a = TimedCachedData Timeout (TimedCachedDataMVar a) (Weak (TimedCachedDataMVar a)) | ReadOnceCachedData (MVar (Either (IO a) a))+data CachedData a = TimedCachedData Timeout (TimedCachedDataMVar a) (Weak (TimedCachedDataMVar a))+                    | ReadOnceCachedData (MVar (Either (IO a) a))  -- |Only fetch data if it has been cached. fetchCached :: CachedData a@@ -78,8 +79,7 @@  -- |Create a cache with a timeout from an (IO ()) function. createTimedCache  :: Int-            -- ^ @Timeout@ in microseconds before the cache is erased, 0 to-            -- disable emptying of the cache+            -- ^ @Timeout@ in microseconds before the cache is erased             -> Bool             -- ^ @resetTimerOnRead@, if true the timeout will be reset             -- every time the cache is read, otherwise it will only be