The Glob package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.


A library for globbing: matching patterns against file paths.

[Skip to ReadMe]


Versions0.1, 0.2, 0.3, 0.3.1, 0.3.2, 0.4, 0.5, 0.5.1, 0.6, 0.6.1, 0.7, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.7.5, 0.7.6, 0.7.7, 0.7.8, 0.7.9, 0.7.10, 0.7.11, 0.7.12, 0.7.13, 0.7.14, 0.8.0, 0.9.0, 0.9.0
Change logCHANGELOG.txt
Dependenciesbase (==4.*), containers (<0.6), directory (<1.4), dlist (>=0.4 && <0.9), filepath (>=1.1 && <1.5), semigroups (==0.18.*), transformers (>=0.2 && <0.6), transformers-compat (>=0.3 && <0.6), Win32 (==2.*) [details]
AuthorMatti Niemenmaa
MaintainerMatti Niemenmaa <>
Home page
Source repositoryhead: git clone
UploadedSun Oct 1 14:53:46 UTC 2017 by MattiNiemenmaa




Maintainers' corner

For package maintainers and hackage trustees

Readme for Glob-0.9.0

[back to package description]
This is Glob, a Haskell library for globbing, i.e. pattern matching file paths
akin to the POSIX glob() function. Haddock documentation is included, and can
be built with the 'cabal haddock' command. Basic usage info is repeated below:

Matching pattern (a String) against filepath (a FilePath):

	match (compile pattern) filepath

Matching a pattern against all paths in the current working directory:

	glob pattern

Matching a pattern against all paths in a given directory (a FilePath):

	globDir1 (compile pattern) directorypath

Matching a list of patterns against all paths in a given directory, returning
the matches for each pattern as well as the paths not matched by any of the

	globDir (map compile patterns) directorypath