unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51784] [PATCH] gnu: Add ghc-lrucache.
@ 2021-11-12  9:11 Daniel Meißner via Guix-patches via
  0 siblings, 0 replies; only message in thread
From: Daniel Meißner via Guix-patches via @ 2021-11-12  9:11 UTC (permalink / raw)
  To: 51784; +Cc: Daniel Meißner

* gnu/packages/haskell-xyz.scm (ghc-lrucache): New variable.
---
 gnu/packages/haskell-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index ae077f7400..d8382252d0 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -16683,3 +16683,25 @@ (define-public ghc-singleton-bool
      "This package provides Type-level booleans.")
     (license license:bsd-3)))
 
+(define-public ghc-lrucache
+  (package
+    (name "ghc-lrucache")
+    (version "1.2.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/lrucache/lrucache-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32 "11avhnjnb89rvn2s41jhh5r40zgp7r6kb5c0hcfiibpabqvv46pw"))))
+    (build-system haskell-build-system)
+    (inputs `(("ghc-contravariant" ,ghc-contravariant)))
+    (home-page "https://github.com/chowells79/lrucache")
+    (synopsis "Simple, Pure LRU cache")
+    (description
+     "This package contains a simple, pure LRU cache, implemented in terms of
+@code{Data.Map}.  It also contains a mutable IO wrapper providing atomic
+updates to an LRU cache.")
+    (license license:bsd-3)))
-- 
2.33.1





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-12  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12  9:11 [bug#51784] [PATCH] gnu: Add ghc-lrucache Daniel Meißner via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).