From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6CO/Akbk4GGc/gAAgWs5BA (envelope-from ) for ; Fri, 14 Jan 2022 03:47:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GOwFN0Xk4GH0qQAAG6o9tA (envelope-from ) for ; Fri, 14 Jan 2022 03:47:33 +0100 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 AB08D37A0C for ; Fri, 14 Jan 2022 03:47:33 +0100 (CET) Received: from localhost ([::1]:41834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8Ccm-0003Ro-Qv for larch@yhetil.org; Thu, 13 Jan 2022 21:47:32 -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 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642128453; 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=Iy8HW1MTgm/FTDCmqeIY4rtBxrqO/bl6WFi4Lb2qcmg=; b=EXdrzIfU/CojAvBAhiD0ZDtY+ksmIAr8urG/RGmOOw5FtjxkhtFavg16Ubb4vua9ZDQAG7 NZTDftxnFYbmJMvE+m++fLdHhkUzmQSxjWsCEA+nySdqMDqJxY3IoVgPfF0RWIS056usQ4 HZ1Zou6Y062K99n1K2B1faMyYgglWq5zuThD67zs32N9pHx/4Fe1lsgLehuORQzPbzHvpB fwdMJT5Z63+E27QgNV7YAkrcNBvh4wn4MnMLMJtZ0MklPKB/SNvz5wRQ/WwbarQPEB+cTw 8VEgSSoHrL1/dWqpn0EeMyIUi046Vf03UfjnnZMt7Jhyb2L1oykzQZdMrrBhBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642128453; a=rsa-sha256; cv=none; b=KjYFbfDJSpYNKGaz3caP/Lxxu9hInW7WuVCEEtjYzaZlX+JT3pSa3yLkZj5NJ5HIcLO+SJ GIRNRssgx4yJXpaDBiqTvamRGnU7OBc5/4BKsJD3GIW5r+UuIabiqWtqKAxtbB6RhXXT6i aaWJfs8bWZbuzqLozJ8Qji7LDK//6gQgMMO9HQDXeD7IlGPdFk3W94TndTIHtPCO/wTPqX fJmTeFrhop491i2VegLDS0gNhNDKpFHvg1ljNrAqFl13S7M8HINkeZopKWLgMDEWHr0ZEp XtlIg8aq5XSeWAYl+Wku5ieWa2gam/hCKdfF99nv9/mw+itPUEqBL+mAlAXFmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b="TO+j06Y/"; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b="TO+j06Y/"; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AB08D37A0C X-Spam-Score: -1.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: pM9HeHFgrZDx * 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))) -- 2.30.2