HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Package0.1.3DevelopmentFilePath

filepattern

File path glob-like matching

Modules

2 modules

Description

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

Depends on

4 packages

Used by in this set · 1