filepattern: File path glob-like matching

[ bsd3, development, filepath, library ] [ Propose Tags ]

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

  • 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 Shake library.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.1.3
Change log CHANGES.txt
Dependencies base (>=4 && <5), directory, extra (>=1.6.2), filepath, semigroups (>=0.18) [details]
License BSD-3-Clause
Copyright Neil Mitchell 2011-2019
Author Neil Mitchell <>, Evan Rutledge Borden <>
Maintainer Neil Mitchell <>
Category Development, FilePath
Home page
Bug tracker
Source repo head: git clone
Uploaded by NeilMitchell at 2019-02-12T23:40:47Z
Distributions Arch:0.1.3, Debian:0.1.2, Fedora:0.1.3, LTSHaskell:0.1.3, NixOS:0.1.3, Stackage:0.1.3, openSUSE:0.1.3
Reverse Dependencies 17 direct, 127 indirect [details]
Downloads 20295 total (202 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-02-12 [all 1 reports]

Readme for filepattern-0.1.1

[back to package description]

FilePattern Hackage version Stackage version Linux Build Status Windows Build Status

A file path matching library, loosely modelled on the semantics from:

Originally part of Shake, now split off as a separate project.