Package Info

ghc-filepattern


File path glob-like matching


Unspecified

A library for matching files using patterns such as '"src/*/.png"' for all '.png' files recursively under the 'src' directory. Features:

  • All matching is /O(n)/. Most functions precompute some information given only

one argument.

  • See "System.FilePattern" and '?==' simple matching and semantics.

  • Use 'match' and 'substitute' to extract suitable strings from the '*' and

'**' matches, and substitute them back into other patterns.

  • Use 'step' and 'matchMany' to perform bulk matching of many patterns against

many paths simultaneously.

  • Use "System.FilePattern.Directory" to perform optimised directory traverals

using patterns.

Originally taken from the <https://hackage.haskell.org/package/shake Shake library>.


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/filepattern

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.1.2-bp155.2.15 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • ghc-filepattern
  • ghc-filepattern-devel
0.1.2-bp154.1.12 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • x86-64
  • ghc-filepattern
  • ghc-filepattern-devel