summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-05-15 11:19:40 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-13 02:13:03 -0400
commit653d17bdd57ec8ca9b11b19e45860982bd1e7c9e (patch)
treea97c6257385e77280c6818612d041b3395684403 /utils
parent55b4263e1a53cc27b1da9227249bdcd20139ddc9 (diff)
downloadhaskell-653d17bdd57ec8ca9b11b19e45860982bd1e7c9e.tar.gz
Rename Package into Unit (2)
* rename PackageState into UnitState * rename findWiredInPackages into findWiredInUnits * rename lookupModuleInAll[Packages,Units] * etc.
Diffstat (limited to 'utils')
-rw-r--r--utils/ghc-pkg/Main.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index b8fe8c11f9..37fd5ba566 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -502,7 +502,7 @@ runit verbosity cli nonopts = do
checkConsistency verbosity cli
["dump"] -> do
- dumpPackages verbosity cli (fromMaybe False mexpand_pkgroot)
+ dumpUnits verbosity cli (fromMaybe False mexpand_pkgroot)
["recache"] -> do
recache verbosity cli
@@ -1627,8 +1627,8 @@ describePackage verbosity my_flags pkgarg expand_pkgroot = do
doDump expand_pkgroot [ (pkg, locationAbsolute db)
| (db, pkgs) <- dbs, pkg <- pkgs ]
-dumpPackages :: Verbosity -> [Flag] -> Bool -> IO ()
-dumpPackages verbosity my_flags expand_pkgroot = do
+dumpUnits :: Verbosity -> [Flag] -> Bool -> IO ()
+dumpUnits verbosity my_flags expand_pkgroot = do
(_, GhcPkg.DbOpenReadOnly, flag_db_stack) <-
getPkgDatabases verbosity GhcPkg.DbOpenReadOnly
False{-use user-} True{-use cache-} expand_pkgroot my_flags