Copyright | Isaac Jones Simon Marlow 2003-2004 |
---|---|
License | BSD3 portions Copyright (c) 2007, Galois Inc. |
Maintainer | cabal-devel@haskell.org |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Internal module for simple file globbing. Please import Distribution.Simple.Glob instead.
Synopsis
- data Glob
- type GlobPieces = [GlobPiece]
- data GlobPiece
- = WildCard
- | Literal String
- | Union [GlobPieces]
- dispGlobPieces :: GlobPieces -> Doc
- isGlobEscapedChar :: Char -> Bool
Documentation
A filepath specified by globbing.
GlobDir !GlobPieces !Glob | dirGlob/glob |
GlobDirRecursive !GlobPieces |
|
GlobFile !GlobPieces | A file glob. |
GlobDirTrailing | Trailing dir; a glob ending in |
Instances
type GlobPieces = [GlobPiece] Source #
A single directory or file component of a globbed path
A piece of a globbing pattern
WildCard | A wildcard |
Literal String | A literal string |
Union [GlobPieces] | A union of patterns, e.g. |
Instances
Structured GlobPiece Source # | |||||
Defined in Distribution.Simple.Glob.Internal | |||||
Binary GlobPiece Source # | |||||
Generic GlobPiece Source # | |||||
Defined in Distribution.Simple.Glob.Internal
| |||||
Show GlobPiece Source # | |||||
Eq GlobPiece Source # | |||||
type Rep GlobPiece Source # | |||||
Defined in Distribution.Simple.Glob.Internal type Rep GlobPiece = D1 ('MetaData "GlobPiece" "Distribution.Simple.Glob.Internal" "Cabal-3.14.0.0-14e1" 'False) (C1 ('MetaCons "WildCard" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Literal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :+: C1 ('MetaCons "Union" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [GlobPieces])))) |
dispGlobPieces :: GlobPieces -> Doc Source #
isGlobEscapedChar :: Char -> Bool Source #