Hello community,

here is the log from the commit of package ghc-lrucaching for openSUSE:Factory 
checked in at 2017-07-05 23:59:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-lrucaching (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-lrucaching.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-lrucaching"

Wed Jul  5 23:59:06 2017 rev:2 rq:506811 version:0.3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-lrucaching/ghc-lrucaching.changes    
2017-04-24 09:47:43.464947268 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-lrucaching.new/ghc-lrucaching.changes       
2017-07-05 23:59:06.682544328 +0200
@@ -1,0 +2,5 @@
+Mon Jun 19 21:01:47 UTC 2017 - [email protected]
+
+- Update to version 0.3.2.
+
+-------------------------------------------------------------------

Old:
----
  lrucaching-0.3.1.tar.gz
  lrucaching.cabal

New:
----
  lrucaching-0.3.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-lrucaching.spec ++++++
--- /var/tmp/diff_new_pack.A7Gkq7/_old  2017-07-05 23:59:07.262462635 +0200
+++ /var/tmp/diff_new_pack.A7Gkq7/_new  2017-07-05 23:59:07.262462635 +0200
@@ -19,14 +19,13 @@
 %global pkg_name lrucaching
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.3.1
+Version:        0.3.2
 Release:        0
 Summary:        LRU cache
 License:        BSD-3-Clause
 Group:          Development/Languages/Other
 Url:            https://hackage.haskell.org/package/%{pkg_name}
 Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base-compat-devel
 BuildRequires:  ghc-deepseq-devel
@@ -58,7 +57,6 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ lrucaching-0.3.1.tar.gz -> lrucaching-0.3.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lrucaching-0.3.1/README.md 
new/lrucaching-0.3.2/README.md
--- old/lrucaching-0.3.1/README.md      2017-01-08 10:09:42.000000000 +0100
+++ new/lrucaching-0.3.2/README.md      2017-06-16 08:59:36.000000000 +0200
@@ -11,3 +11,27 @@
 [lrucache](https://hackage.haskell.org/package/lrucache). I created it
 because there were bugs in `lrucache` and the maintainer was not
 responding to issues.
+
+
+## Usage
+
+The easiest way to use this library is to use `Data.LruCache.IO`. This wraps 
the
+cache in a `Data.IORef`, a mutable varible in the `IO` monad.
+
+e.g. To create a `1000`-item cache, keyed by `Integer`, storing `String`:
+
+```haskell
+import qualified Data.LruCache.IO as LRU
+
+newCache :: IO (LRU.LruHandle Integer String)
+newCache = LRU.newLruHandle 1000
+
+cachedLookup cache key = LRU.cached cache key $
+    -- insert some something expensive
+    return $ show key
+
+main :: IO ()
+main = do
+    cache <- newCache
+    cachedLookup cache 123 >>= putStrLn
+```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lrucaching-0.3.1/lrucaching.cabal 
new/lrucaching-0.3.2/lrucaching.cabal
--- old/lrucaching-0.3.1/lrucaching.cabal       2017-01-08 10:09:42.000000000 
+0100
+++ new/lrucaching-0.3.2/lrucaching.cabal       2017-06-16 08:59:36.000000000 
+0200
@@ -1,5 +1,5 @@
 name:                  lrucaching
-version:               0.3.1
+version:               0.3.2
 synopsis:              LRU cache
 description:           Please see README.md
 homepage:              https://github.com/cocreature/lrucaching#readme
@@ -13,7 +13,7 @@
 extra-source-files:    CHANGELOG.md
                        README.md
 cabal-version:         >=1.10
-tested-with:           GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
+tested-with:           GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2
 
 library
   hs-source-dirs:      src
@@ -41,9 +41,9 @@
                      , containers   >= 0.5 && < 0.6
                      , deepseq
                      , hashable
-                     , hspec        >= 2.2 && < 2.4
+                     , hspec        >= 2.2 && < 2.5
                      , lrucaching
-                     , QuickCheck   >= 2.8 && < 2.10
+                     , QuickCheck   >= 2.8 && < 2.11
                      , transformers >= 0.4 && < 0.6
   default-language:    Haskell2010
 


Reply via email to