From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:52464) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaehx-0008DC-JV for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaehu-00028W-8x for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53662) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaehu-00027B-3Q for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaeht-0006To-1n for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:05 -0500 Subject: [bug#38423] [PATCH 42/49] gnu: Add ghc-hasql-transaction. Resent-Message-ID: From: Robert Vollmert Date: Fri, 29 Nov 2019 12:37:44 +0100 Message-Id: <20191129113751.82405-42-rob@vllmrt.net> In-Reply-To: <20191129113751.82405-1-rob@vllmrt.net> References: <20191129113751.82405-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38423@debbugs.gnu.org Cc: Robert Vollmert * gnu/packages/haskell-xyz.scm (ghc-hasql-transaction): New variable. --- gnu/packages/haskell-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 79091ddae4..b8fc8a8960 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -14231,3 +14231,36 @@ All error-reporting is explicit and is presented using the Either type.") (synopsis "A pool of connections for Hasql") (description "A pool of connections for Hasql") (license license:expat))) + +(define-public ghc-hasql-transaction + (package + (name "ghc-hasql-transaction") + (version "0.7.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/hasql-transaction/hasql-transaction-" + version + ".tar.gz")) + (sha256 + (base32 + "13d5zisr34bdbiypvpcb114d4c9yi6pyb9wnhigqpwd90vzpzsb5")))) + (build-system haskell-build-system) + (inputs + `(("ghc-hasql" ,ghc-hasql) + ("ghc-bytestring-tree-builder" + ,ghc-bytestring-tree-builder) + ("ghc-contravariant" ,ghc-contravariant) + ("ghc-contravariant-extras" + ,ghc-contravariant-extras) + ("ghc-base-prelude" ,ghc-base-prelude))) + (arguments + `(#:tests? ; tests require a running postgres + #f)) + (home-page + "https://github.com/nikita-volkov/hasql-transaction") + (synopsis + "A composable abstraction over retryable transactions for Hasql") + (description "A composable abstraction over retryable transactions for Hasql") + (license license:expat))) -- 2.21.0 (Apple Git-122.2)