From patchwork Fri Nov 12 09:11:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Daniel_Mei=C3=9Fner?= X-Patchwork-Id: 34408 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 16E2827BBE1; Fri, 12 Nov 2021 09:12:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C97FB27BBE1 for ; Fri, 12 Nov 2021 09:12:10 +0000 (GMT) Received: from localhost ([::1]:59462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlSbR-0001bR-RO for patchwork@mira.cbaines.net; Fri, 12 Nov 2021 04:12:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlSbK-0001b4-Eq for guix-patches@gnu.org; Fri, 12 Nov 2021 04:12:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlSbK-0000dm-6R for guix-patches@gnu.org; Fri, 12 Nov 2021 04:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mlSbJ-0005Y4-U0 for guix-patches@gnu.org; Fri, 12 Nov 2021 04:12:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51784] [PATCH] gnu: Add ghc-lrucache. Resent-From: Daniel =?utf-8?q?Mei=C3=9Fner?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Nov 2021 09:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51784 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51784@debbugs.gnu.org Cc: Daniel =?utf-8?q?Mei=C3=9Fner?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163670831621315 (code B ref -1); Fri, 12 Nov 2021 09:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Nov 2021 09:11:56 +0000 Received: from localhost ([127.0.0.1]:43432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlSbD-0005Xj-R7 for submit@debbugs.gnu.org; Fri, 12 Nov 2021 04:11:56 -0500 Received: from lists.gnu.org ([209.51.188.17]:32870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mlSbA-0005XZ-UX for submit@debbugs.gnu.org; Fri, 12 Nov 2021 04:11:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlSbA-0001YH-Lr for guix-patches@gnu.org; Fri, 12 Nov 2021 04:11:52 -0500 Received: from out3.mail.ruhr-uni-bochum.de ([134.147.53.155]:59116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlSb7-0000aT-QW for guix-patches@gnu.org; Fri, 12 Nov 2021 04:11:52 -0500 Received: from mx3.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by out3.mail.ruhr-uni-bochum.de (Postfix mo-ext) with ESMTP id 4HrCWZ73cXz8S9M for ; Fri, 12 Nov 2021 10:11:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1636708299; bh=jeXh53ZGHKRUAK5GUn2Hi8tl1P8e1n4ToUyIyymDpOg=; h=From:To:Cc:Subject:Date:From; b=kVe5Wv3AVol9DY0+5gxAbFpuDj+umaBoUvCyFftS6ZTedZmLss+WDD4uxV+zyRM9H NXdq/d2ofK4A/k8vNkMGwyZOIaajoWIrTMGhRtG10PItrbA6rSXOku18MtXUEIwK2P Y3uA+2z4DAiShKOLB06GGyPqgXkZq7gH3nzs9S4k= Received: from out3.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by mx3.mail.ruhr-uni-bochum.de (Postfix idis) with ESMTP id 4HrCWZ6Crmz8S8S; Fri, 12 Nov 2021 10:11:38 +0100 (CET) X-RUB-Notes: Internal origin=IPv6:2a05:3e00:c:1001::8693:2aec X-Envelope-Sender: Received: from mail2.mail.ruhr-uni-bochum.de (mail2.mail.ruhr-uni-bochum.de [IPv6:2a05:3e00:c:1001::8693:2aec]) by out3.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTP id 4HrCWZ50Vpz8S5t; Fri, 12 Nov 2021 10:11:38 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.1 at mx3.mail.ruhr-uni-bochum.de Received: from xii-04.mg07.ruhr-uni-bochum.de (pm26.mg07.ruhr-uni-bochum.de [10.150.49.41]) by mail2.mail.ruhr-uni-bochum.de (Postfix) with ESMTPSA id 4HrCWZ2htxzDgyN; Fri, 12 Nov 2021 10:11:38 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.0 at mail2.mail.ruhr-uni-bochum.de Date: Fri, 12 Nov 2021 10:11:04 +0100 Message-Id: <20211112091104.21189-1-daniel.meissner-i4k@ruhr-uni-bochum.de> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Received-SPF: pass client-ip=134.147.53.155; envelope-from=daniel.meissner-i4k@ruhr-uni-bochum.de; helo=out3.mail.ruhr-uni-bochum.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Daniel =?utf-8?q?Mei=C3=9Fner?= X-ACL-Warn: , =?utf-8?q?Daniel_Mei=C3=9Fner_via_Guix-patches?= X-Patchwork-Original-From: =?utf-8?q?Daniel_Mei=C3=9Fner_via_Guix-patches?= via From: =?utf-8?q?Daniel_Mei=C3=9Fner?= X-getmail-retrieved-from-mailbox: Patches * 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)))