guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#38423] [PATCH 12/49] gnu: Add ghc-expiring-cache-map.


From: Robert Vollmert
Subject: [bug#38423] [PATCH 12/49] gnu: Add ghc-expiring-cache-map.
Date: Fri, 29 Nov 2019 12:37:14 +0100

* gnu/packages/haskell-xyz.scm (ghc-expiring-cache-map): New package.
---
 gnu/packages/haskell-xyz.scm | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 3946129173..75adb3d7d4 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -13226,7 +13226,8 @@ data types.")
     (build-system haskell-build-system)
     (inputs
      `(("ghc-base-prelude" ,ghc-base-prelude)
-       ("ghc-semigroups" ,ghc-semigroups)))
+       ("ghc-semigroups" ,ghc-semigroups)
+       ("ghc-deferred-folds" ,ghc-deferred-folds)))
     (native-inputs
      `(("ghc-quickcheck" ,ghc-quickcheck)
        ("ghc-quickcheck-instances"
@@ -13342,3 +13343,33 @@ property associated with the type.")
     (description
      "Abstractions over deferred folds.")
     (license license:expat)))
+
+(define-public ghc-expiring-cache-map
+  (package
+    (name "ghc-expiring-cache-map")
+    (version "0.0.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             
"https://hackage.haskell.org/package/expiring-cache-map/expiring-cache-map-";
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1fb47hsn06ybn2yzw7r6pjkmvvfpbdx7wjhbpxcywilbjyac4fqf"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-hashable" ,ghc-hashable)
+       ("ghc-unordered-containers"
+        ,ghc-unordered-containers)))
+    (home-page
+     "https://github.com/elblake/expiring-cache-map";)
+    (synopsis "General purpose simple caching.")
+    (description
+     "A simple general purpose shared state cache map with
+automatic expiration of values, for caching the results of
+accessing a resource such as reading a file. With variations
+for Ord and Hashable keys using Data.Map.Strict and Data.HashMap.Strict,
+respectively.")
+    (license license:bsd-3)))
-- 
2.21.0 (Apple Git-122.2)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]