From patchwork Thu Feb 15 08:50:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saku Laesvuori X-Patchwork-Id: 60346 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 4578027BBE9; Thu, 15 Feb 2024 08:53:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5E5B027BBE2 for ; Thu, 15 Feb 2024 08:53:11 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raXTH-0000Wl-IG; Thu, 15 Feb 2024 03:51:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raXTD-0000T6-Nt for guix-patches@gnu.org; Thu, 15 Feb 2024 03:51:51 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raXTD-00045z-F4 for guix-patches@gnu.org; Thu, 15 Feb 2024 03:51:51 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raXTV-0001A7-Sx; Thu, 15 Feb 2024 03:52:09 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67921] [PATCH v2 19/23] gnu: Add ghc-filepattern-bootstrap-for-9.6 Resent-From: Saku Laesvuori Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Thu, 15 Feb 2024 08:52:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67921 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67921@debbugs.gnu.org Cc: Saku Laesvuori , Lars-Dominik Braun X-Debbugs-Original-To: guix-patches@gnu.org, 67921@debbugs.gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun Received: via spool by 67921-submit@debbugs.gnu.org id=B67921.17079870834238 (code B ref 67921); Thu, 15 Feb 2024 08:52:09 +0000 Received: (at 67921) by debbugs.gnu.org; 15 Feb 2024 08:51:23 +0000 Received: from localhost ([127.0.0.1]:54038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raXSk-00016D-SN for submit@debbugs.gnu.org; Thu, 15 Feb 2024 03:51:23 -0500 Received: from vmi571514.contaboserver.net ([75.119.130.101]:55072 helo=mail.laesvuori.fi) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raXSY-00012G-VB for 67921@debbugs.gnu.org; Thu, 15 Feb 2024 03:51:11 -0500 Received: from X-kone.org.aalto.fi (unknown [130.233.144.187]) by mail.laesvuori.fi (Postfix) with ESMTPSA id D18D834367E; Thu, 15 Feb 2024 09:51:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1707987090; bh=Cc7cjxd2b9lEZV/jMo4ocsBVL9HapdbxVQa9ItuKs94=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=J5Cphn29cyonWmXhfEnHwJLPBMp4qvXE4ktf2DDa7yAkHfNpw41GAtCkR2GTKODm3 8/Jcr8j8U5OAp6N6Bj/Z3FGwvh7keNhcVt7YVbuXTK8mpC/X3wQYVpamRHcn4EO4Ol VPCwVg3xkCBQu8QvBCZ64jd3Rb40g8s6qWxzqHrk= Date: Thu, 15 Feb 2024 10:50:00 +0200 Message-ID: <635c344ad4a4862184093aba05c4eae6d71b324f.1707827100.git.saku@laesvuori.fi> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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: , Reply-to: Saku Laesvuori X-ACL-Warn: , Saku Laesvuori via Guix-patches X-Patchwork-Original-From: Saku Laesvuori via Guix-patches via From: Saku Laesvuori Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/haskell.scm (ghc-filepattern-bootstrap-for-9.6): New variable. Change-Id: I3778f85d7a14474445295ebd6bbb1f4bfbe4f6d5 --- gnu/packages/haskell.scm | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 3b591c6ffa..47eab1d5fa 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -1533,6 +1533,47 @@ (define ghc-js-flot-bootstrap-for-9.6 requirements of downstream users (e.g. Debian).") (license license:expat))) +(define ghc-filepattern-bootstrap-for-9.6 + (package + (name "ghc-filepattern-bootstrap") + (version "0.1.3") + (source (origin + (method url-fetch) + (uri (hackage-uri "filepattern" version)) + (sha256 + (base32 + "0dlnwnwhsfdkwm69z66wj5d2x9n3la55glq4fsn5rxm2kr1msi6c")))) + (build-system haskell-build-system) + (properties '((upstream-name . "filepattern"))) + (arguments (list #:tests? #f + #:haskell ghc-bootstrap-for-9.6)) + (inputs (list ghc-extra-bootstrap-for-9.6)) + (home-page "https://github.com/ndmitchell/filepattern#readme") + (synopsis "File path glob-like matching") + (description + "This package provides Haskell library for matching files using patterns +such as @code{\\\"src\\/**\\/*.png\\\"} for all @@file{.png} files recursively +under the @@file{src} directory. + +Some of its features include: + +@itemize +@item All matching is O(n). + +@item Most functions pre-compute some information given only one argument. + +@item Uses @code{match} and @code{substitute} to extract suitable strings from +the @code{*} and @code{**} matches, and substitutes them back into other +patterns. + +@item Uses @code{step} and @code{matchMany} to perform bulk matching of many +patterns against many paths simultaneously. + +@item Uses @code{System.FilePattern.Directory} to perform optimised directory +traverals using patterns. +@end itemize") + (license license:bsd-3))) + (define ghc-unordered-containers-bootstrap-for-9.6 (package (name "ghc-unordered-containers-bootstrap")