From patchwork Fri Jan 14 02:45:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Paul Weber X-Patchwork-Id: 36305 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 02F7227BBEA; Fri, 14 Jan 2022 02:47:33 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B5B2627BBE9 for ; Fri, 14 Jan 2022 02:47:32 +0000 (GMT) Received: from localhost ([::1]:41834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8Ccl-0003Ro-Sn for patchwork@mira.cbaines.net; Thu, 13 Jan 2022 21:47:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8CcL-0002Ke-CD for guix-patches@gnu.org; Thu, 13 Jan 2022 21:47:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8CcK-0007lg-PR for guix-patches@gnu.org; Thu, 13 Jan 2022 21:47:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8CcK-0000XE-P3 for guix-patches@gnu.org; Thu, 13 Jan 2022 21:47:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50835] [PATCH v2 03/24] gnu: Add ghc-hedis. Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Jan 2022 02:47:04 +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 , rg@raghavgururajan.name Received: via spool by 50835-submit@debbugs.gnu.org id=B50835.16421283691797 (code B ref 50835); Fri, 14 Jan 2022 02:47:04 +0000 Received: (at 50835) by debbugs.gnu.org; 14 Jan 2022 02:46:09 +0000 Received: from localhost ([127.0.0.1]:35019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8CbQ-0000Sp-Tg for submit@debbugs.gnu.org; Thu, 13 Jan 2022 21:46:09 -0500 Received: from singpolyma.net ([192.99.233.116]:34921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8CbH-0000PH-Ke for 50835@debbugs.gnu.org; Thu, 13 Jan 2022 21:46:02 -0500 Received: by singpolyma.net (Postfix, from userid 1000) id 9CBFE486170A; Fri, 14 Jan 2022 02:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1642128358; bh=hzS0NzxRnV8RuEGCz/Kq6ygVHXFGRCO4wgaLRNTsMGk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TO+j06Y/WWH2pCJ7t0SQ0i2oHmat79yFyQ8F3z9ShTrQsbrtK83SfRdXJXduq31dz 914gn/W3Qamcz/8Tz/MxMqXLN90RqeXo5/wFeZf5G//6fPz8bZduRt/49or58pVrqh DBIQrjdhMeaGlEpEnAqIs98B/Pt0CZ7rRvnTV5HI= From: Stephen Paul Weber Date: Thu, 13 Jan 2022 21:45:25 -0500 Message-Id: <20220114024546.75747-3-singpolyma@singpolyma.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220114024546.75747-1-singpolyma@singpolyma.net> References: <20220114024546.75747-1-singpolyma@singpolyma.net> MIME-Version: 1.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/haskell-xyz.scm (ghc-hedis): New variable. --- gnu/packages/haskell-xyz.scm | 66 ++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 9670b50a65..bf1aa68305 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -16084,3 +16084,69 @@ using STM and with support for expiration times.") "Scanner is a 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.14.4") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/hedis/hedis-" + version + ".tar.gz")) + (sha256 + (base32 "0h6s3x3pylyidjbzjqyrmc2cm5ls67m9iij35fn48rvq4l41w9h9")))) + (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"))))))) + (inputs + (list + ghc-scanner + ghc-async + ghc-bytestring-lexing + ghc-unordered-containers + ghc-network + ghc-resource-pool + ghc-tls + ghc-vector + ghc-http + ghc-errors + ghc-network-uri)) + (native-inputs + (list + ghc-hunit + ghc-test-framework + ghc-test-framework-hunit + 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)))