On Thu, 2007-11-15 at 10:24 +0000, Simon Marlow wrote:
> Claus Reinke wrote:
> > * 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.)
Claus, this is great, thanks!
> Wouldn't * be more conventional than .? * means "any substring" in
> filename globbing, so most people will be familiar with that usage. I
> suppose it would have to be quoted, but I'd pay that penalty. Anyone else
> have any thoughts?
Hierarchical module names include '.'s quite a bit but not '*'s.
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 '*'
Duncan
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc