From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CNEWH2YoUWFkDQAAgWs5BA (envelope-from ) for ; Mon, 27 Sep 2021 04:11:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mEivGmYoUWF8VgAAbx9fmQ (envelope-from ) for ; Mon, 27 Sep 2021 02:11:50 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 12137C745 for ; Mon, 27 Sep 2021 04:11:48 +0200 (CEST) Received: from localhost ([::1]:34626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUg7P-0004CI-4k for larch@yhetil.org; Sun, 26 Sep 2021 22:11:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUg6g-0003gK-Te for guix-patches@gnu.org; Sun, 26 Sep 2021 22:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUg6g-0000WO-Lx for guix-patches@gnu.org; Sun, 26 Sep 2021 22:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUg6g-0002B7-FD for guix-patches@gnu.org; Sun, 26 Sep 2021 22:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50835] [PATCH 3/8] gnu: Add ghc-hedis. Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Sep 2021 02:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50835 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50835@debbugs.gnu.org Cc: Stephen Paul Weber Received: via spool by 50835-submit@debbugs.gnu.org id=B50835.16327086468292 (code B ref 50835); Mon, 27 Sep 2021 02:11:02 +0000 Received: (at 50835) by debbugs.gnu.org; 27 Sep 2021 02:10:46 +0000 Received: from localhost ([127.0.0.1]:39194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUg6Q-00029e-4u for submit@debbugs.gnu.org; Sun, 26 Sep 2021 22:10:46 -0400 Received: from singpolyma.net ([192.99.233.116]:41267) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUg6H-00028T-Aw for 50835@debbugs.gnu.org; Sun, 26 Sep 2021 22:10:38 -0400 Received: by singpolyma.net (Postfix, from userid 1000) id 35984486168D; Mon, 27 Sep 2021 02:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1632708637; bh=+paSSlMQACToGnhT9SOwqOmILSUk1k+1Gyn0unf5CP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PjRn6E+FS2LudC8P1xtvK8ZiD0NndYAx25fSTtNqWn/enkhqeDRXtXFHL3Nb1DYqs h+ZNINUbG6CtbyPc6ysw8mMOtOY2Ys4uc7tZ8inebLSFe3qAiWzY9yTc4ZBqOb6apd SK8w6xyRNjNSprM3BH8FgzRdPHXiTK09a82Ft6M4= From: Stephen Paul Weber Date: Sun, 26 Sep 2021 21:10:28 -0500 Message-Id: <20210927021033.17700-3-singpolyma@singpolyma.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210927021033.17700-1-singpolyma@singpolyma.net> References: <20210927021033.17700-1-singpolyma@singpolyma.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632708708; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KuhNyOu3Sp9MnIe1umqWinHBeSJ1qPia/Qacg/NMH3w=; b=HkQqahAXyjVEg9gcW5SHYRqyuaCkftjrC8YE4057p2/X/cmLdNq+p5BJz3rZIR/WdFmEX0 rVvf5c/UujKIWju2Q+axXn3fXtoWD/6gQe4MUCyaRirBUWg2SKPXYYeK3Wynsla8Ln6Hzj 6IDVCju9CwIj8qhuZLoKx/v03jO2TsaPB8VyibE9Uk03ULOUk7v9jYvHFNbiu0JNFDobZ2 aHerQSMMj35NYH6965N6TSfxZcj9Zv2ls2Z7MQqbWaaMgf8u60u466VrnEGL+9Fy3SZMPP nZ0SxUqc7uGZl/CwDaxsKAXWEcDxUubaULWQlIydZfShpujoLJLHI/+mZurkOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632708708; a=rsa-sha256; cv=none; b=Yw4+bvex/8TQg9uiYdheRrzdiwNIVON5qXZZrPa2OzJsdD9HkNukV1RLzBB+xMynk2NjT1 N2BWxnn4gqt+EzyIpVOhSjSCoKtg+h7kcyYVLo2NTioiJJDmuL8nn1TgwBJ3PgHRy100+1 ihx5pOm1KMlRTkMFPgpRZ8Ze+J+wtUCYeWtwuaW0b1Jd+QmGS+1upXFFosPci3JqeRpjf+ 287EfQDQmSH6+pcceWMj/iEMjXyLJYgMPebqILKgi1TNdEpQjAckdJ03sL+tSwJ75FID1Z A9W+CLgDo8stcEPur/bg90PpUpwVTaLA5JRGbOtNpn+S0/2F4vMhV+jxQn7r6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=PjRn6E+F; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=PjRn6E+F; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 12137C745 X-Spam-Score: 3.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: fdCFrMJSFkfJ * gnu/packages/haskell-xyz.scm (ghc-hedis): New variable. --- gnu/packages/haskell-xyz.scm | 65 ++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index a7af298ada..55efd9da2b 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -15766,3 +15766,68 @@ using STM and with support for expiration times.") (description "Parser combinator library designed to be fast. It doesn't support backtracking.") (license license:bsd-3))) + +(define-public ghc-hedis + (package + (name "ghc-hedis") + (version "0.12.11") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/hedis/hedis-" + version + ".tar.gz")) + (sha256 + (base32 "1n83zwg011n9w2v1zz4mwpms9jh3c8mk700zya4as1jg83748xww")))) + (build-system haskell-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + ; The main tests require redis-server running, but not doctest + (when tests? (invoke "runhaskell" "Setup.hs" "test" "doctest")) + #t))))) + (inputs + `(("ghc-scanner" ,ghc-scanner) + ("ghc-async" ,ghc-async) + ("ghc-bytestring-lexing" ,ghc-bytestring-lexing) + ("ghc-unordered-containers" ,ghc-unordered-containers) + ("ghc-network" ,ghc-network) + ("ghc-resource-pool" ,ghc-resource-pool) + ("ghc-tls" ,ghc-tls) + ("ghc-vector" ,ghc-vector) + ("ghc-http" ,ghc-http) + ("ghc-errors" ,ghc-errors) + ("ghc-network-uri" ,ghc-network-uri))) + (native-inputs + `(("ghc-hunit" ,ghc-hunit) + ("ghc-test-framework" ,ghc-test-framework) + ("ghc-test-framework-hunit" ,ghc-test-framework-hunit) + ("ghc-doctest" ,ghc-doctest))) + (home-page "https://github.com/informatikr/hedis") + (synopsis + "Client library for the Redis datastore: supports full command set, pipelining") + (description + "Redis is an open source, advanced key-value store. It is often referred +to as a data structure server since keys can contain strings, hashes, lists, +sets and sorted sets. This library is a Haskell client for the Redis datastore. +Compared to other Haskell client libraries it has some advantages. + +Hedis is intended to be used with the latest stable version of Redis. +Most redis commands are available as haskell functions, although MONITOR and SYNC +are intentionally omitted. Additionally, a low-level API is exposed that +makes it easy for the library user to implement further commands, such as new +commands from an experimental Redis version. + +Commands are pipelined as much as possible without any work by the user. + +When subscribed to the Redis PubSub server, clients are not allowed to issue +commands other than subscribing to or unsubscribing from channels. +This library uses the type system to enforce the correct behavior. + +TCP sockets are the default way to connect to a Redis server. For connections +to a server on the same machine, Unix domain sockets offer higher performance +than the standard TCP connection.") + (license license:bsd-3))) -- 2.20.1