Glob: Globbing library

[ bsd3, library, system ] [ Propose Tags ]

A library for globbing: matching patterns against file paths.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.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.1, 0.9.2, 0.9.3, 0.10.0, 0.10.1, 0.10.2
Change log CHANGELOG.txt
Dependencies base (>=4 && <5), containers, directory, dlist (>=0.4), filepath (>=1.1), semigroups (>=0.18), transformers (>=0.2), transformers-compat (>=0.3), Win32 (>=2.5) [details]
License BSD-3-Clause
Author Matti Niemenmaa
Maintainer Matti Niemenmaa <matti.niemenmaa+glob@iki.fi>
Revised Revision 3 made by kakkun61 at 2022-01-15T11:08:18Z
Category System
Home page http://iki.fi/matti.niemenmaa/glob/
Source repo head: git clone https://github.com/Deewiant/glob
Uploaded by kakkun61 at 2021-11-10T11:14:16Z
Distributions Arch:0.10.2, Debian:0.10.1, Fedora:0.10.2, FreeBSD:0.7.5, LTSHaskell:0.10.2, NixOS:0.10.2, Stackage:0.10.2, openSUSE:0.10.2
Reverse Dependencies 61 direct, 3554 indirect [details]
Downloads 101984 total (249 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 2021-11-10 [all 1 reports]

Readme for Glob-0.10.2

[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
patterns:

	globDir (map compile patterns) directorypath