HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulefilemanip-0.3.6.3Haskell98

System.FilePath.GlobPattern

  • 1 type
  • 2 values
  • Packagefilemanip-0.3.6.3
  • Exports3
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceGlobPattern.hs

Glob patterns

1 declaration

Basic glob pattern syntax is the same as for the Unix shell environment.

  • * matches everything up to a directory separator or end of string.

  • [range] matches any character in range.

  • [!range] matches any character not in range.

There are three extensions to the traditional glob syntax, taken from modern Unix shells.

  • \ escapes a character that might otherwise have special meaning. For a literal "\" character, use "\\".

  • ** matches everything, including a directory separator.

  • (s1|s2|...) matches any of the strings s1, s2, etc.

Matching functions

2 declarations