packages feed

lrucache 0.2.0.1 → 0.3

raw patch · 2 files changed

+7/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Data.Cache.LRU.Internal: instance (Ord key, Show key, Show val) => Show (LRU key val)

Files

Data/Cache/LRU/Internal.hs view
@@ -23,6 +23,10 @@     , content :: !(Map key (LinkedVal key val)) -- ^ the backing 'Map'     } deriving Eq ++instance (Ord key, Show key, Show val) => Show (LRU key val) where+    show lru = "fromList " ++ show (toList lru)+ -- | The values stored in the Map of the LRU cache.  They embed a -- doubly-linked list through the values of the 'Map'. data LinkedVal key val = Link {
lrucache.cabal view
@@ -1,5 +1,5 @@ Name:                lrucache-Version:             0.2.0.1+Version:             0.3 Synopsis:            a simple, pure LRU cache License:             BSD3 License-file:        LICENSE@@ -18,6 +18,8 @@         an LRU cache.         .         Version History:+        .+        0.3 - Added a Show instance for LRU.         .         0.2.0.1 - Increase strictness slightly.                   Remove cabal target for test executable.