summaryrefslogtreecommitdiff
path: root/utils/ghc-pkg
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-10-06 13:14:56 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-10-06 13:14:56 +0000
commit6199781240ee68bc2250a91517b1cc3c7a514332 (patch)
treecfa872b4d7e6d1bc40f0817bab9167e07a344313 /utils/ghc-pkg
parent8f95c6c82b6aa365d940d2a96df9cc672c1fedb1 (diff)
downloadhaskell-6199781240ee68bc2250a91517b1cc3c7a514332.tar.gz
follow changes in Distribution.Simple.PackageIndex API
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 952fa06211..d5e7bce25e 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -890,7 +890,7 @@ showPackageDot verbosity myflags = do
getPkgDatabases verbosity False True{-use cache-} myflags
let all_pkgs = allPackagesInStack flag_db_stack
- ipix = PackageIndex.listToInstalledPackageIndex all_pkgs
+ ipix = PackageIndex.fromList all_pkgs
putStrLn "digraph {"
let quote s = '"':s ++ "\""
@@ -898,7 +898,7 @@ showPackageDot verbosity myflags = do
| p <- all_pkgs,
let from = display (sourcePackageId p),
depid <- depends p,
- Just dep <- [PackageIndex.lookupInstalledPackage ipix depid],
+ Just dep <- [PackageIndex.lookupInstalledPackageId ipix depid],
let to = display (sourcePackageId dep)
]
putStrLn "}"