FIX 1463 (implement 'ghc-pkg find-module')
authorclaus.reinke@talk21.com <unknown>
Fri, 9 Nov 2007 16:26:52 +0000 (16:26 +0000)
committerclaus.reinke@talk21.com <unknown>
Fri, 9 Nov 2007 16:26:52 +0000 (16:26 +0000)
commit536eaecd1071cfd25e0384b10ed9b72f98b21f46
tree47adf52cea92c720ed366e1083878d54a8877c22
parentf300abd65061cdc2cc1db685570fefa958b06679
FIX 1463 (implement 'ghc-pkg find-module')

- the ticket asks for a module2package lookup in ghc-pkg
  (this would be useful to have in cabal, as well)

- we can now ask which packages expose a module we need,
  eg, when preparing a cabal file or when getting errors
  after package reorganisations:

  $ ./ghc-pkg-inplace find-module Var
  c:/fptools/ghc/driver/package.conf.inplace:
      (ghc-6.9.20071106)

  $ ./ghc-pkg-inplace find-module Data.Sequence
  c:/fptools/ghc/driver/package.conf.inplace:
      containers-0.1

- implemented as a minor variation on listPackages

(as usual, it would be useful if one could combine
multiple queries into one)
utils/ghc-pkg/Main.hs