From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42334) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaec4-0004Bt-7W for guix-patches@gnu.org; Fri, 29 Nov 2019 06:39:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaec2-00019A-Vb for guix-patches@gnu.org; Fri, 29 Nov 2019 06:39:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaec2-00018Z-R6 for guix-patches@gnu.org; Fri, 29 Nov 2019 06:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaec2-0006Bn-Oi for guix-patches@gnu.org; Fri, 29 Nov 2019 06:39:02 -0500 Subject: [bug#38423] [PATCH 12/49] gnu: Add ghc-expiring-cache-map. Resent-Message-ID: From: Robert Vollmert Date: Fri, 29 Nov 2019 12:37:14 +0100 Message-Id: <20191129113751.82405-12-rob@vllmrt.net> In-Reply-To: <20191129113751.82405-1-rob@vllmrt.net> References: <20191129113751.82405-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38423@debbugs.gnu.org Cc: Robert Vollmert * 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)