summaryrefslogtreecommitdiff
path: root/utils/ghc-pkg
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2016-06-20 09:02:34 +0200
committerBen Gamari <ben@smart-cactus.org>2016-06-30 20:02:23 +0200
commit0701db125eb32ed0a518d962c9e4ee279e3296fd (patch)
treeed9102cd788355570475234673106c3afd33f933 /utils/ghc-pkg
parentb8b3e30a6eedf9f213b8a718573c4827cfa230ba (diff)
downloadhaskell-0701db125eb32ed0a518d962c9e4ee279e3296fd.tar.gz
Updates to handle new Cabal
Specifically per-component macros and multiple libraries. Contains Cabal submodule update. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: austin, bgamari Reviewed By: austin, bgamari Subscribers: hvr, thomie Differential Revision: https://phabricator.haskell.org/D2059
Diffstat (limited to 'utils/ghc-pkg')
-rw-r--r--utils/ghc-pkg/Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index e000a8fa5b..1b5f5e08f7 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -447,8 +447,8 @@ runit verbosity cli nonopts = do
(Just (Substring pkgarg_str m)) Nothing
["dot"] -> do
showPackageDot verbosity cli
- ["find-module", moduleName] -> do
- let match = maybe (==moduleName) id (substringCheck moduleName)
+ ["find-module", mod_name] -> do
+ let match = maybe (==mod_name) id (substringCheck mod_name)
listPackages verbosity cli Nothing (Just match)
["latest", pkgid_str] -> do
pkgid <- readGlobPkgId pkgid_str