* fix #1839, #1463, by supporting ghc-pkg bulk queries with substring matching
- #1839 asks for a ghc-pkg dump feature, #1463 for the ability
to query the same fields in several packages at once.
- this patch enables substring matching for packages in 'list',
'describe', and 'field', and for modules in find-module. it
also allows for comma-separated multiple fields in 'field'.
substring matching can optionally ignore cases to avoid the
rather unpredictable capitalisation of packages.
- the patch is not quite as full-featured as the one attached
to #1839, but avoids the additional dependency on regexps.
open ended substrings are indicated by '.' (prefix., .suffix,
.infix.)
- this covers both tickets, and permits for the most common
query patterns (finding all packages contributing to the
System. hierarchy, finding all regex or string packages,
listing all package maintainers or haddock directories,
..), which i've wanted to have for a long time.
the regex-based examples from ticket #1839 translate as:
ghc-pkg list .regex. --ignore-case
ghc-pkg find-module Data.
ghc-pkg find-module .Monad.
ghc-pkg field . name,maintainer
ghc-pkg field . haddock-html
ghc-pkg describe .
FIX_1839_1463-ghc-pkg-bulk-queries.patch
Description: Binary data
_______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
