From patchwork Thu Jun 3 15:58:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 29868 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 8076527BC83; Thu, 3 Jun 2021 16:59:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C881727BC85 for ; Thu, 3 Jun 2021 16:59:13 +0100 (BST) Received: from localhost ([::1]:48880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lopkW-0007O1-SH for patchwork@mira.cbaines.net; Thu, 03 Jun 2021 11:59:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lopkM-0007Le-4P for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33036) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lopkL-0006eH-TG for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lopkL-0001wh-RZ for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48813] [PATCH 1/8] gnu: Add ghc-strict-list. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jun 2021 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48813 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48813@debbugs.gnu.org Received: via spool by 48813-submit@debbugs.gnu.org id=B48813.16227358927343 (code B ref 48813); Thu, 03 Jun 2021 15:59:01 +0000 Received: (at 48813) by debbugs.gnu.org; 3 Jun 2021 15:58:12 +0000 Received: from localhost ([127.0.0.1]:44563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjX-0001uG-Ip for submit@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:11 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:53360 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjV-0001tr-FT for 48813@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:10 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1622735882; bh=pw0ix6gnBTPu0tL0GiYMRdf2XwJhqQCGkndDWuCMSRs=; h=From:To:Subject:In-Reply-To:References:Date; b=K4tAOxg/JLIvEwpnhYj7sSEjhW7pIsBZEQvg0BudmU72TMBUcKPOHwEl7Li1hZ9EW SJaw4eYE36e+HiLECHKHWtZrkM9lVUA6yG/xJ/6J16/WEFJRurNK0OF8FXgRsf+uBu wX8rH5CMRQLYpcOOyWFneV+80YT3HAzmxdzeBBLk= In-Reply-To: References: Message-Id: Date: Thu, 03 Jun 2021 17:58:02 +0200 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-strict-list): New variable. --- gnu/packages/haskell-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 1fa7310fab..f0054948f6 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; Copyright © 2020 Carlo Holl ;;; Copyright © 2020 Christopher Lemmer Webber +;;; Copyright © 2021 Xinglu Chen ;;; ;;; This file is part of GNU Guix. ;;; @@ -12802,6 +12803,39 @@ types, such as pairs, @code{Maybe} and @code{Either}. It also contains strict IO operations.") (license license:bsd-3))) +(define-public ghc-strict-list + (package + (name "ghc-strict-list") + (version "0.1.5") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/strict-list/strict-list-" + version + ".tar.gz")) + (sha256 + (base32 + "06mv208bspfl2mh1razi6af3fri8w7f5p3klkc3b9yx5ddv3hwxs")))) + (build-system haskell-build-system) + (inputs + `(("ghc-hashable" ,ghc-hashable) + ("ghc-semigroupoids" ,ghc-semigroupoids))) + (native-inputs + `(("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-quickcheck-instances" + ,ghc-quickcheck-instances) + ("ghc-rerebase" ,ghc-rerebase) + ("ghc-tasty" ,ghc-tasty) + ("ghc-tasty-hunit" ,ghc-tasty-hunit) + ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck))) + (home-page + "https://github.com/nikita-volkov/strict-list") + (synopsis "Strict linked list") + (description "This package provides an implementation of strict linked +list with care taken about stack.") + (license license:expat))) + (define-public ghc-stringbuilder (package (name "ghc-stringbuilder") From patchwork Thu Jun 3 15:58:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 29871 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 7C2EE27BC83; Thu, 3 Jun 2021 16:59:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D03D627BC91 for ; Thu, 3 Jun 2021 16:59:17 +0100 (BST) Received: from localhost ([::1]:49166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lopka-0007bN-Qx for patchwork@mira.cbaines.net; Thu, 03 Jun 2021 11:59:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lopkM-0007Lf-Hk for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lopkM-0006eu-9w for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lopkM-0001wo-9y for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48813] [PATCH 2/8] gnu: Add ghc-neat-interpolation. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jun 2021 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48813 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48813@debbugs.gnu.org Received: via spool by 48813-submit@debbugs.gnu.org id=B48813.16227358927349 (code B ref 48813); Thu, 03 Jun 2021 15:59:02 +0000 Received: (at 48813) by debbugs.gnu.org; 3 Jun 2021 15:58:12 +0000 Received: from localhost ([127.0.0.1]:44565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjY-0001uO-0h for submit@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:12 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:53366 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjW-0001tu-8Z for 48813@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:10 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1622735884; bh=MD2BEGuOhX5OgRvYWWiwH0Ap6W7RL1rMyYPbA5kiDjc=; h=From:To:Subject:In-Reply-To:References:Date; b=JU5tIHNmgJ3ktfUrIfHI0edJidjCWfyxe6cyzPf9MPUo2c5MLl4FT1d7Tec5EX0fy /6uQhPSUwbGTxf+DmDdEzEKVirvCZsP3iotBXs3RDM2aW9MnHkaCRJvXuWmWy7ow9U vtjYGYAB0aWsrqqpWafalSyjPYGX8/VeuJ/olPsU= In-Reply-To: References: Message-Id: Date: Thu, 03 Jun 2021 17:58:04 +0200 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-neat-interpolation): New variable. --- gnu/packages/haskell-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index f0054948f6..98093216ee 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -8514,6 +8514,38 @@ with pseudo-graphical interfaces. This package is a nice, modern binding to GNU ncurses.") (license license:gpl3))) +(define-public ghc-neat-interpolation + (package + (name "ghc-neat-interpolation") + (version "0.3.2.6") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/neat-interpolation/neat-interpolation-" + version + ".tar.gz")) + (sha256 + (base32 + "10k5x47i84nycl54p61l8v1bpvi7mw663vnj8nn1qjpn03anz8z2")))) + (build-system haskell-build-system) + (inputs `(("ghc-megaparsec" ,ghc-megaparsec))) + (native-inputs + `(("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-quickcheck-instances" + ,ghc-quickcheck-instances) + ("ghc-rerebase" ,ghc-rerebase) + ("ghc-tasty" ,ghc-tasty) + ("ghc-tasty-hunit" ,ghc-tasty-hunit) + ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck))) + (home-page "https://github.com/nikita-volkov/neat-interpolation") + (synopsis "Quasiquoter for neat and simple multiline text interpolation") + (description "This package provides a quasiquoter for producing Text +values with support for a simple interpolation of input values. It removes the +excessive indentation from the input and accurately manages the indentation of +all lines of the interpolated variables.") + (license license:expat))) + (define-public ghc-network (package (name "ghc-network") From patchwork Thu Jun 3 15:58:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 29867 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 268B627BC83; Thu, 3 Jun 2021 16:59:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7E4F927BC84 for ; Thu, 3 Jun 2021 16:59:13 +0100 (BST) Received: from localhost ([::1]:48878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lopkW-0007Nz-J2 for patchwork@mira.cbaines.net; Thu, 03 Jun 2021 11:59:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lopkN-0007MJ-0G for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33038) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lopkM-0006f4-P5 for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lopkM-0001wv-NR for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48813] [PATCH 3/8] gnu: Add ghc-multistate. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jun 2021 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48813 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48813@debbugs.gnu.org Received: via spool by 48813-submit@debbugs.gnu.org id=B48813.16227358937364 (code B ref 48813); Thu, 03 Jun 2021 15:59:02 +0000 Received: (at 48813) by debbugs.gnu.org; 3 Jun 2021 15:58:13 +0000 Received: from localhost ([127.0.0.1]:44568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjZ-0001uh-AU for submit@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:13 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:53372 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjX-0001tw-Cy for 48813@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:11 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1622735885; bh=9F//q/ZyMdeacViTiSwve6RLT9/VKAFu3ZmGxc+e2uw=; h=From:To:Subject:In-Reply-To:References:Date; b=IUzgqOkXQKothTt9lXfRipfF25Amg6AbokoEP/H45vp7nkCFxTL0XlKpFbbuxP7tO stDNen7mBUiF09Ofr1oM+asbtZaScRAtu/cUypl8fnymboGOvnZNO51yhqLUEtccba m+jLRpPIfkrJY51fo9mUFAoPMrfwZadxLfpad6ek= In-Reply-To: References: Message-Id: <04d86d2998b9bd069e6e9974276838fbdcafac0b.1622735640.git.public@yoctocell.xyz> Date: Thu, 03 Jun 2021 17:58:05 +0200 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-multistate): New variable. --- gnu/packages/haskell-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 98093216ee..405fe63a74 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -8384,6 +8384,37 @@ Therefore, you may have to declare @code{import Control.Monad.Except ()} at the top of your file to get all of the ExceptT instances in scope.") (license license:bsd-3))) +(define-public ghc-multistate + (package + (name "ghc-multistate") + (version "0.8.0.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/multistate/multistate-" + version + ".tar.gz")) + (sha256 + (base32 + "0hypksjacpjgpkgvjn76fd5rgdz7hi6ri36ihdy0bdhpi83jnhn5")))) + (build-system haskell-build-system) + (inputs + `(("ghc-tagged" ,ghc-tagged) + ("ghc-transformers-base" ,ghc-transformers-base) + ("ghc-monad-control" ,ghc-monad-control))) + (native-inputs `(("ghc-hspec" ,ghc-hspec))) + (home-page "https://github.com/lspitzner/multistate") + (synopsis "Similar to mtl's ReaderT/WriterT/StateT, but more than one +contained value/type.") + (description "When using multiple Read/Write/State transformers in the +same monad stack, it becomes necessary to lift the operations in order to +affect a specific transformer. Using heterogeneous lists (and all kinds of +GHC extensions magic), this package provides transformers that remove that +necessity: MultiReaderT/MultiWriterT/MultiStateT/MultiRWST can contain a +heterogeneous list of values.") + (license license:bsd-3))) + (define-public ghc-murmur-hash (package (name "ghc-murmur-hash") From patchwork Thu Jun 3 15:58:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 29866 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 EE3F127BC94; Thu, 3 Jun 2021 16:59:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1EA9B27BC83 for ; Thu, 3 Jun 2021 16:59:13 +0100 (BST) Received: from localhost ([::1]:48874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lopkW-0007No-46 for patchwork@mira.cbaines.net; Thu, 03 Jun 2021 11:59:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lopkN-0007Mf-Cd for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lopkN-0006fC-53 for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lopkN-0001x3-5H for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48813] [PATCH 4/8] gnu: Add ghc-monad-memo. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jun 2021 15:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48813 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48813@debbugs.gnu.org Received: via spool by 48813-submit@debbugs.gnu.org id=B48813.16227358967380 (code B ref 48813); Thu, 03 Jun 2021 15:59:03 +0000 Received: (at 48813) by debbugs.gnu.org; 3 Jun 2021 15:58:16 +0000 Received: from localhost ([127.0.0.1]:44571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjb-0001uw-JZ for submit@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:15 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:53378 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjY-0001ty-JU for 48813@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:12 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1622735887; bh=M12vqfLxiE6XvdSn1woYvXrwUygvh0zZYzr9Socydog=; h=From:To:Subject:In-Reply-To:References:Date; b=akdz3UefaLjjDvVrY+Te34LqdD6Kum2IXPX+/Pv7+0dlJUFIbpr8gRSGr9Q8S8OgR wJ/dIjchoDYeIHhTaL9Qhbk2nRl2FBEHg/u34/CQCYXZ/x0WrhcAD9Ph1I6QTkR9O9 uB6Jxd+hHDm4eTVXLn0qjFT0J8s5E/w50WCb/AUU= In-Reply-To: References: Message-Id: <1875aef1c39a0771c245148afdb9a6dec99f32fa.1622735640.git.public@yoctocell.xyz> Date: Thu, 03 Jun 2021 17:58:06 +0200 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-monad-memo): New variable. --- gnu/packages/haskell-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 405fe63a74..a77d13f822 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -8158,6 +8158,40 @@ code locations of messages.") operators for looping.") (license license:public-domain))) +(define-public ghc-monad-memo + (package + (name "ghc-monad-memo") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/monad-memo/monad-memo-" + version + ".tar.gz")) + (sha256 + (base32 + "1zsvp0g2kzjf5zkv1js65jfc1p3yrkr95csp2ljpqx857qy4lnn6")))) + (build-system haskell-build-system) + (inputs + `(("ghc-vector" ,ghc-vector) + ("ghc-primitive" ,ghc-primitive) + ("ghc-transformers-compat" + ,ghc-transformers-compat))) + (native-inputs + `(("ghc-random" ,ghc-random) + ("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-test-framework-quickcheck2" + ,ghc-test-framework-quickcheck2) + ("ghc-test-framework" ,ghc-test-framework))) + (home-page + "https://github.com/EduardSergeev/monad-memo") + (synopsis "Memoization monad transformer") + (description "This package provides a memoization monad transformer +supporting most of the standard monad transformers and a range of memoization +cache types: from default pure maps to extremely fast mutable vectors.") + (license license:bsd-3))) + (define-public ghc-monad-par (package (name "ghc-monad-par") From patchwork Thu Jun 3 15:58:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 29870 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 61A8A27BC81; Thu, 3 Jun 2021 16:59:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C6C5A27BC84 for ; Thu, 3 Jun 2021 16:59:23 +0100 (BST) Received: from localhost ([::1]:49696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lopkg-0007yO-T0 for patchwork@mira.cbaines.net; Thu, 03 Jun 2021 11:59:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lopkN-0007Mw-Px for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lopkN-0006fL-Ij for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lopkN-0001xA-IJ for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48813] [PATCH 5/8] gnu: Add ghc-deque. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jun 2021 15:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48813 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48813@debbugs.gnu.org Received: via spool by 48813-submit@debbugs.gnu.org id=B48813.16227359107421 (code B ref 48813); Thu, 03 Jun 2021 15:59:03 +0000 Received: (at 48813) by debbugs.gnu.org; 3 Jun 2021 15:58:30 +0000 Received: from localhost ([127.0.0.1]:44574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjb-0001uz-UI for submit@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:30 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:53384 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopja-0001u0-5P for 48813@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:14 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1622735888; bh=nEpRyqgrxl1SYNXVS8kjey7+DOEB7yFsJZ7tij/yU1o=; h=From:To:Subject:In-Reply-To:References:Date; b=T5PeIASpOVrDhWYuIXuCLeIOWOk/nA21WsKYb8QN4czWvaCpXF2UxXmfjhnauHQJe P5+pdI5uf5sAEB0eCAatS/78reMwAScS2RSStxJnt5kRt0kBv8mfF0wWR0rNlcX7vU IC6R69NwdTOWI+VAZ3lqCqsF6KDsK8bWZUogU0rU= In-Reply-To: References: Message-Id: <5a0fa813220d54ec7f6d937f1c31b3eb71e1d18b.1622735640.git.public@yoctocell.xyz> Date: Thu, 03 Jun 2021 17:58:07 +0200 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-deque): New variable. --- gnu/packages/haskell-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index a77d13f822..c2c6432adb 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -3214,6 +3214,40 @@ providing an @code{rnf} implementation.") related modules split from the statistics library.") (license license:bsd-2))) +(define-public ghc-deque + (package + (name "ghc-deque") + (version "0.4.3") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/deque/deque-" + version + ".tar.gz")) + (sha256 + (base32 + "19apwmcykprz3a91wszmc1w3qcz4x3rq79gmik514fszi9yhwsmp")))) + (build-system haskell-build-system) + (inputs + `(("ghc-hashable" ,ghc-hashable) + ("ghc-strict-list" ,ghc-strict-list))) + (native-inputs + `(("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-quickcheck-instances" + ,ghc-quickcheck-instances) + ("ghc-rerebase" ,ghc-rerebase) + ("ghc-tasty" ,ghc-tasty) + ("ghc-tasty-hunit" ,ghc-tasty-hunit) + ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck))) + (home-page + "https://github.com/nikita-volkov/deque") + (synopsis "Double-ended queues") + (description + "This package provides strict and lazy implementations of Double-Ended +Queue (aka Dequeue or Deque) based on head-tail linked list.") + (license license:expat))) + (define-public ghc-descriptive (package (name "ghc-descriptive") From patchwork Thu Jun 3 15:58:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 29872 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 B4F1F27BC81; Thu, 3 Jun 2021 16:59:27 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5301127BC78 for ; Thu, 3 Jun 2021 16:59:27 +0100 (BST) Received: from localhost ([::1]:50050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lopkk-0008Eb-DO for patchwork@mira.cbaines.net; Thu, 03 Jun 2021 11:59:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lopkO-0007N5-7r for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lopkN-0006g3-Vv for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lopkN-0001xI-V4 for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48813] [PATCH 6/8] gnu: Add ghc-data-tree-print. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jun 2021 15:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48813 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48813@debbugs.gnu.org Received: via spool by 48813-submit@debbugs.gnu.org id=B48813.16227359107428 (code B ref 48813); Thu, 03 Jun 2021 15:59:03 +0000 Received: (at 48813) by debbugs.gnu.org; 3 Jun 2021 15:58:30 +0000 Received: from localhost ([127.0.0.1]:44578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjq-0001ve-EG for submit@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:30 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:53390 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjb-0001u8-KP for 48813@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:16 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1622735889; bh=5gdi/viyBpKnjGVN5Hs8CixuTyBmNiNpOV6XE+rC7Ow=; h=From:To:Subject:In-Reply-To:References:Date; b=J9FmuYvIw7ANd5AjGPQy1Xtjg1VNhLuPsHT5BRBnbXFvxkaOpDVeURSvNDkDMASJn 0n1YPT8MLN42kca7DAV/FJ1cJKmIBVMLvZ6FF+qsm1WGaXsJrgVa86QQTZ2yfzOCa2 JVfVXZulz6fl/M/ljqJ/tVSzeYkRF73IVXx2EcRY= In-Reply-To: References: Message-Id: <5ef92e1aae4954fdf8180d17a434d0fca50e0eb0.1622735640.git.public@yoctocell.xyz> Date: Thu, 03 Jun 2021 17:58:09 +0200 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-data-tree-print): New variable. --- gnu/packages/haskell-xyz.scm | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index c2c6432adb..67ffdf0055 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -3078,6 +3078,45 @@ It includes hashing functions for all basic Haskell98 types.") "This module provides set and multiset operations on ordered lists.") (license license:bsd-3))) +(define-public ghc-data-tree-print + (package + (name "ghc-data-tree-print") + (version "0.1.0.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/data-tree-print/data-tree-print-" + version + ".tar.gz")) + (sha256 + (base32 + "00jh37anim8qsn553467gmfhajcz1c61zrgh1ypkqsll0gc29vy3")))) + (build-system haskell-build-system) + (inputs `(("ghc-syb" ,ghc-syb))) + (arguments + `(#:cabal-revision + ("2" + "00qpzhm3lndhpql8aj93aj6r3x9n0gw3nx6n0q60xxrd6agyjifq"))) + (home-page "https://github.com/lspitzner/data-tree-print") + (synopsis "Print Data instances as a nested tree") + (description "This package provides functionality similar to that of the +@code{Show} class: Taking some arbitrary value and returning a String. + +@itemize +@item +Output is not intended to be valid haskell. +@item +Requires a @code{Data.Data.Data} instance instead of a @code{Text.Show} one. +@item +Output, if large, is often easier to parse than @code{show} output due to the +formatting as a nested tree. +@item +The user can adapt the behaviour at runtime using custom layouting expressed +via syb-style extension. +@end itemize") + (license license:bsd-3))) + (define-public ghc-dbus (package (name "ghc-dbus") From patchwork Thu Jun 3 15:58:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 29869 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 D5CB127BC85; Thu, 3 Jun 2021 16:59:23 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8AE0627BC83 for ; Thu, 3 Jun 2021 16:59:23 +0100 (BST) Received: from localhost ([::1]:49652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lopkg-0007wp-KG for patchwork@mira.cbaines.net; Thu, 03 Jun 2021 11:59:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lopkO-0007N7-Mx for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lopkO-0006gI-Bs for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lopkO-0001xP-Bk for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48813] [PATCH 7/8] gnu: Add ghc-czipwith. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jun 2021 15:59:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48813 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48813@debbugs.gnu.org Received: via spool by 48813-submit@debbugs.gnu.org id=B48813.16227359117435 (code B ref 48813); Thu, 03 Jun 2021 15:59:04 +0000 Received: (at 48813) by debbugs.gnu.org; 3 Jun 2021 15:58:31 +0000 Received: from localhost ([127.0.0.1]:44580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjq-0001vl-Qo for submit@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:31 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:53396 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjd-0001uJ-21 for 48813@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:17 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1622735891; bh=ZddwZjlUuvhacDgO/IYZ8MN0R9/jNMKxO07HmPbpcu0=; h=From:To:Subject:In-Reply-To:References:Date; b=cfo6bsyX2Jxtl23cX0PPRG6CD6V04oLJNWG1KhfT3rZhtO1W5gLDZM1aNJcKt26aB r2qx4aMlu7V7yxoJUeJXjFrrKXWE9pQINpRDb3T9wJbzCgyYMHIRPZJs5fH5MCwS4Y czub0D9ziiMnc6b+BF5Qai8bj7wgZofaCin+PWoQ= In-Reply-To: References: Message-Id: <34abb29662774a61239f01a7ae4804c3042e5eb0.1622735640.git.public@yoctocell.xyz> Date: Thu, 03 Jun 2021 17:58:11 +0200 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-czipwith): New variable. --- gnu/packages/haskell-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 67ffdf0055..446e60477b 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -2829,6 +2829,31 @@ Values (CSV) Files}. This format is used, among many other things, as a lingua franca for spreadsheets, and for certain web services.") (license license:expat))) +(define-public ghc-czipwith + (package + (name "ghc-czipwith") + (version "1.0.1.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/czipwith/czipwith-" + version + ".tar.gz")) + (sha256 + (base32 + "17zf2blgjp47dahjcprkpymg9kb1ll6386pkr109gjr78f261gs1")))) + (build-system haskell-build-system) + (home-page + "https://github.com/lspitzner/czipwith/") + (synopsis "CZipWith class and deriving via TH") + (description "This package provides a typeclass similar to +@code{Data.Distributive}, but for data parameterised with a type constructor. +The name comes from the resemblance of its method to the regular +@code{zipWith} function. The abstraction is useful for example for program +config handling.") + (license license:bsd-3))) + (define-public ghc-data-accessor (package (name "ghc-data-accessor") From patchwork Thu Jun 3 15:58:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 29873 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 46EF327BC81; Thu, 3 Jun 2021 16:59:33 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D41A227BC78 for ; Thu, 3 Jun 2021 16:59:32 +0100 (BST) Received: from localhost ([::1]:50596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lopkp-0000Ce-RK for patchwork@mira.cbaines.net; Thu, 03 Jun 2021 11:59:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lopkP-0007N9-0Y for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33043) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lopkO-0006h0-P7 for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lopkO-0001xW-OO for guix-patches@gnu.org; Thu, 03 Jun 2021 11:59:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48813] [PATCH 8/8] gnu: Add ghc-brittany. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Jun 2021 15:59:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48813 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48813@debbugs.gnu.org Received: via spool by 48813-submit@debbugs.gnu.org id=B48813.16227359117441 (code B ref 48813); Thu, 03 Jun 2021 15:59:04 +0000 Received: (at 48813) by debbugs.gnu.org; 3 Jun 2021 15:58:31 +0000 Received: from localhost ([127.0.0.1]:44582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopjr-0001vs-1w for submit@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:31 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:53402 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lopje-0001ui-Iy for 48813@debbugs.gnu.org; Thu, 03 Jun 2021 11:58:19 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1622735893; bh=1dBq9ktei3ob7q8kjCz79qfcbnrLJM2Df9lD7JfmEvY=; h=From:To:Subject:In-Reply-To:References:Date; b=GSAv9oBDWZ6t38NtusOUpXxUnuTki5Rvaw0j1YYeePmm45apZganKFHJORh1kjjIP p2UmJ0udfcs9QLsBO9isginJAbUkoK5CbLkI1GsFoJ1cLC7hA4R1brLDZuCzV+cDEO 4DbW9Z3CM8A4Vl2j+6rRRsiqu+a9ebDx7RkcTKL0= In-Reply-To: References: Message-Id: <49eb8fd90d7b7d285b0d9f6b2d7e99c8a6628570.1622735640.git.public@yoctocell.xyz> Date: Thu, 03 Jun 2021 17:58:12 +0200 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-brittany): New variable. --- gnu/packages/haskell-xyz.scm | 126 +++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 446e60477b..ee54a65332 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -1211,6 +1211,132 @@ interface.") using a simple box model.") (license license:bsd-3))) +(define-public ghc-brittany + (package + (name "ghc-brittany") + (version "0.12.1.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/brittany/brittany-" + version + ".tar.gz")) + (sha256 + (base32 + "0nw7ymdb7xam634w42l1xjgyvpla8grcg02aj19fscw2fn9gfh7z")))) + (build-system haskell-build-system) + (inputs + `(("ghc-paths" ,ghc-paths) + ("ghc-exactprint" ,ghc-exactprint) + ("ghc-multistate" ,ghc-multistate) + ("ghc-syb" ,ghc-syb) + ("ghc-neat-interpolation" + ,ghc-neat-interpolation) + ("ghc-data-tree-print" ,ghc-data-tree-print) + ("ghc-butcher" ,ghc-butcher) + ("ghc-yaml" ,ghc-yaml) + ("ghc-aeson" ,ghc-aeson) + ("ghc-extra" ,ghc-extra) + ("ghc-uniplate" ,ghc-uniplate) + ("ghc-strict" ,ghc-strict) + ("ghc-monad-memo" ,ghc-monad-memo) + ("ghc-unsafe" ,ghc-unsafe) + ("ghc-safe" ,ghc-safe) + ("ghc-semigroups" ,ghc-semigroups) + ("ghc-cmdargs" ,ghc-cmdargs) + ("ghc-czipwith" ,ghc-czipwith) + ("ghc-random" ,ghc-random))) + (native-inputs + `(("ghc-hspec" ,ghc-hspec) + ("ghc-hspec" ,ghc-hspec) + ("ghc-hspec" ,ghc-hspec))) + (arguments + `(#:cabal-revision + ("2" + "0pfrm5vvh7x94f8gy8ka6rmq6yk6xxxgba68rd91bk8lbjxsmkxl"))) + (home-page "https://github.com/lspitzner/brittany/") + (synopsis "Haskell source code formatter") + (description "Brittany is a Haskell source code formatter. The goal of +this project is to: + +@itemize +@item +Always retain the semantics of the source being transformed; +@item +Be idempotent; +@item +Support the full GHC-haskell syntax including syntactic extensions (but +excluding -XCPP which is too hard); +@item +Retain newlines and comments unmodified; +@item +Be clever about using the available horizontal space while not overflowing the +column maximum unless it cannot be avoided; +@item +Be clever about aligning things horizontally (this can be turned off +completely however); +@item +Have linear complexity in the size of the input. +@end itemize") + (license license:agpl3))) + +(define-public ghc-butcher + (package + (name "ghc-butcher") + (version "1.3.2.3") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/butcher/butcher-" + version + ".tar.gz")) + (sha256 + (base32 + "0lpicayq9k59m2ydz989xsypr653xwhp6mmhlp7nmjzk6jwpq5q5")))) + (build-system haskell-build-system) + (inputs + `(("ghc-free" ,ghc-free) + ("ghc-unsafe" ,ghc-unsafe) + ("ghc-microlens" ,ghc-microlens) + ("ghc-microlens-th" ,ghc-microlens-th) + ("ghc-multistate" ,ghc-multistate) + ("ghc-extra" ,ghc-extra) + ("ghc-void" ,ghc-void) + ("ghc-bifunctors" ,ghc-bifunctors) + ("ghc-deque" ,ghc-deque))) + (native-inputs `(("ghc-hspec" ,ghc-hspec))) + (arguments + `(#:cabal-revision + ("2" + "1751sllw8s81x3s1dhilbr5lqnv9cpdqiv17c8by466aa6304dxa"))) + (home-page "https://github.com/lspitzner/butcher/") + (synopsis "Chops a command or program invocation into digestable pieces.") + (description "This package is similar to the optparse-applicative package, +but less features, more flexibility and more evil. + +The main differences are: + +@itemize +@item Provides a pure interface by default + +@item Exposes an evil monadic interface, which allows for much nicer binding +of command part results to some variable name. + +In optparse-applicative you easily lose track of what field you are modifying +after the 5th <*> (admittedly, i think -XRecordWildCards improves on that +issue already.) + +Evil, because you are not allowed to use the monad's full power in this case, +i.e. there is a constraint that is not statically enforced. See below. + +@item The monadic interface allows much clearer definitions of commandparses +with (nested) subcommands. No pesky sum-types are necessary. +@end itemize") + + (license license:bsd-3))) + (define-public ghc-byteable (package (name "ghc-byteable")