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")