From patchwork Fri Nov 29 11:37:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Vollmert X-Patchwork-Id: 16314 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 1A3D8177F1; Fri, 29 Nov 2019 12:49:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id B258117782 for ; Fri, 29 Nov 2019 12:49:11 +0000 (GMT) Received: from localhost ([::1]:58552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iafhv-0002ak-2V for patchwork@mira.cbaines.net; Fri, 29 Nov 2019 07:49:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52533) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaei1-0008Fu-3P for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaehv-0002H5-Pa for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaehv-0002BF-LL for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaehs-0006Th-Jk for guix-patches@gnu.org; Fri, 29 Nov 2019 06:45:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38423] [PATCH 40/49] gnu: Add ghc-hasql. Resent-From: Robert Vollmert Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Nov 2019 11:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38423 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 38423@debbugs.gnu.org Cc: Robert Vollmert Received: via spool by 38423-submit@debbugs.gnu.org id=B38423.157502788124800 (code B ref 38423); Fri, 29 Nov 2019 11:45:04 +0000 Received: (at 38423) by debbugs.gnu.org; 29 Nov 2019 11:44:41 +0000 Received: from localhost ([127.0.0.1]:59622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iaehV-0006Rp-7B for submit@debbugs.gnu.org; Fri, 29 Nov 2019 06:44:41 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:46792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iaehO-0006QT-F2 for 38423@debbugs.gnu.org; Fri, 29 Nov 2019 06:44:35 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 47PXZj3vspzQl9T; Fri, 29 Nov 2019 12:38:37 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id VBAAO-5tA0gP; Fri, 29 Nov 2019 12:38:31 +0100 (CET) From: Robert Vollmert Date: Fri, 29 Nov 2019 12:37:42 +0100 Message-Id: <20191129113751.82405-40-rob@vllmrt.net> In-Reply-To: <20191129113751.82405-1-rob@vllmrt.net> References: <20191129113751.82405-1-rob@vllmrt.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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-hasql): New variable. --- gnu/packages/haskell-xyz.scm | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 4ca9ffa5ec..6f24921b5f 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -14155,3 +14155,51 @@ E.g., hasql is based on this library. It supports all Postgres versions starting from 8.3 and is tested against 8.3, 9.3 and 9.5 with the integer_datetimes setting off and on.") (license license:expat))) + +(define-public ghc-hasql + (package + (name "ghc-hasql") + (version "1.4") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/hasql/hasql-" + version + ".tar.gz")) + (sha256 + (base32 + "0j2arb96i1dinpz1yxl2cjl4qhbljk9yph52cj9az50mvl8vx3w4")))) + (build-system haskell-build-system) + (inputs + `(("ghc-attoparsec" ,ghc-attoparsec) + ("ghc-postgresql-binary" ,ghc-postgresql-binary) + ("ghc-postgresql-libpq" ,ghc-postgresql-libpq) + ("ghc-bytestring-strict-builder" + ,ghc-bytestring-strict-builder) + ("ghc-dlist" ,ghc-dlist) + ("ghc-vector" ,ghc-vector) + ("ghc-hashtables" ,ghc-hashtables) + ("ghc-text-builder" ,ghc-text-builder) + ("ghc-hashable" ,ghc-hashable) + ("ghc-data-default-class" + ,ghc-data-default-class) + ("ghc-profunctors" ,ghc-profunctors) + ("ghc-contravariant-extras" + ,ghc-contravariant-extras) + ("ghc-contravariant" ,ghc-contravariant) + ("ghc-loch-th" ,ghc-loch-th) + ("ghc-placeholders" ,ghc-placeholders) + ("ghc-base-prelude" ,ghc-base-prelude))) + (arguments + `(#:tests? ; tests require a running postgres + #f)) + (home-page + "https://github.com/nikita-volkov/hasql") + (synopsis + "An efficient PostgreSQL driver and a flexible mapping API") + (description + "This package is the root of the hasql ecosystem. +The API is completely disinfected from exceptions. +All error-reporting is explicit and is presented using the Either type.") + (license license:expat)))