summaryrefslogtreecommitdiff
path: root/utils/ghc-pkg
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2017-04-26 15:26:56 -0400
committerBen Gamari <ben@smart-cactus.org>2017-04-26 15:27:29 -0400
commit579bb7669f40ed01841dd197ee535cf26fa19580 (patch)
treebbc8f776648cda12537d10a8f747e6e91dbe74ef /utils/ghc-pkg
parent350d268aa62543097d8ae3f81a7adf0d635d6688 (diff)
downloadhaskell-579bb7669f40ed01841dd197ee535cf26fa19580.tar.gz
Update Cabal submodule, with necessary wibbles.
Test Plan: validate Reviewers: bgamari, austin Reviewed By: bgamari Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3501
Diffstat (limited to 'utils/ghc-pkg')
-rw-r--r--utils/ghc-pkg/Main.hs11
1 files changed, 2 insertions, 9 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index ed73c2960b..9e18c97bc1 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -1236,16 +1236,9 @@ convertPackageInfoToCacheFormat pkg =
GhcPkg.componentId = installedComponentId pkg,
GhcPkg.instantiatedWith = instantiatedWith pkg,
GhcPkg.sourcePackageId = sourcePackageId pkg,
- GhcPkg.packageName =
- case sourcePackageName pkg of
- Nothing -> packageName pkg
- Just pn -> pn,
+ GhcPkg.packageName = packageName pkg,
GhcPkg.packageVersion = Version.Version (versionNumbers (packageVersion pkg)) [],
- GhcPkg.mungedPackageName =
- case sourcePackageName pkg of
- Nothing -> Nothing
- Just _ -> Just (packageName pkg),
- GhcPkg.libName =
+ GhcPkg.sourceLibName =
fmap (mkPackageName . unUnqualComponentName) (sourceLibName pkg),
GhcPkg.depends = depends pkg,
GhcPkg.abiDepends = map (\(AbiDependency k v) -> (k,unAbiHash v)) (abiDepends pkg),