From patchwork Fri Jun 7 07:49:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saku Laesvuori X-Patchwork-Id: 65218 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 4BB8327BBE9; Fri, 7 Jun 2024 08:56:29 +0100 (BST) 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,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 7FE5727BBE2 for ; Fri, 7 Jun 2024 08:56:27 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFUS1-0002fY-7C; Fri, 07 Jun 2024 03:55:53 -0400 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 1sFURy-0002eE-U3 for guix-patches@gnu.org; Fri, 07 Jun 2024 03:55:50 -0400 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 1sFURy-0007X8-Kg for guix-patches@gnu.org; Fri, 07 Jun 2024 03:55:50 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFUSD-0004bZ-Mg; Fri, 07 Jun 2024 03:56:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#67921] [PATCH haskell-team 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: Fri, 07 Jun 2024 07:56:05 +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-Xcc: Lars-Dominik Braun Received: via spool by 67921-submit@debbugs.gnu.org id=B67921.171774692617550 (code B ref 67921); Fri, 07 Jun 2024 07:56:05 +0000 Received: (at 67921) by debbugs.gnu.org; 7 Jun 2024 07:55:26 +0000 Received: from localhost ([127.0.0.1]:60599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFURZ-0004Yr-9J for submit@debbugs.gnu.org; Fri, 07 Jun 2024 03:55:25 -0400 Received: from vmi571514.contaboserver.net ([75.119.130.101]:34412 helo=mail.laesvuori.fi) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFUOq-0004PN-9z for 67921@debbugs.gnu.org; Fri, 07 Jun 2024 03:52:36 -0400 Received: from X-kone.org.aalto.fi (unknown [130.233.144.95]) by mail.laesvuori.fi (Postfix) with ESMTPSA id 00D363436EF; Fri, 7 Jun 2024 09:52:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1717746767; bh=wIPuJLodOme6cbfSzOD2iic/Eh18OWqawW1kWngPEYQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Q+I5IsZPHbCIRRovbXwtuBe3d44TiGkbUTyktlwtyXOYmZqkYo9FW2HVYUi55H7WP cu+kQ4gtD1K7C5SZu0qnHLEBUUUBdMHtKM4aPI5t1PEdJwF5Fl6N1FWfCLkaAy4UHp y9/gQqU4VuSrAAJ0i8NMd8CFSrCXa+BQ2hHuowdg= Date: Fri, 7 Jun 2024 10:49:50 +0300 Message-ID: <3a5d794e547439ab1fbf8b4aa994e196717d1e07.1717746077.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 c2e5391fea..b2d874e330 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -1629,6 +1629,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")