summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-06-26 20:27:49 +0000
committerIan Lynagh <igloo@earth.li>2008-06-26 20:27:49 +0000
commita11bb49b97eaba892730baf1565e922715dbc07f (patch)
treeb9ebdf37ef6329cd8c836aec5a2aca78b55ba70a /utils
parentabd113f06ebf3ac29f852e80c5a8c0060f979202 (diff)
downloadhaskell-a11bb49b97eaba892730baf1565e922715dbc07f.tar.gz
Follow Cabal changes
Diffstat (limited to 'utils')
-rw-r--r--utils/ghc-pkg/Main.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index d8b8639380..91c8ade957 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -324,7 +324,8 @@ parseGlobPackageId :: ReadP r PackageIdentifier
parseGlobPackageId =
parse
+++
- (do n <- parsePackageName; string "-*"
+ (do n <- parse
+ string "-*"
return (PackageIdentifier{ pkgName = n, pkgVersion = globVersion }))
-- globVersion means "all versions"
@@ -573,7 +574,7 @@ listPackages flags mPackageName mModuleName = do
where doc = text (display (package p))
show_simple db_stack = do
- let showPkg = if FlagNamesOnly `elem` flags then pkgName
+ let showPkg = if FlagNamesOnly `elem` flags then display . pkgName
else display
pkgs = map showPkg $ sortBy compPkgIdVer $
map package (concatMap snd db_stack)