summaryrefslogtreecommitdiff
path: root/libraries/ghc-boot
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 /libraries/ghc-boot
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 'libraries/ghc-boot')
-rw-r--r--libraries/ghc-boot/GHC/PackageDb.hs17
1 files changed, 6 insertions, 11 deletions
diff --git a/libraries/ghc-boot/GHC/PackageDb.hs b/libraries/ghc-boot/GHC/PackageDb.hs
index ecd82dd309..bf83d25baa 100644
--- a/libraries/ghc-boot/GHC/PackageDb.hs
+++ b/libraries/ghc-boot/GHC/PackageDb.hs
@@ -98,8 +98,7 @@ data InstalledPackageInfo compid srcpkgid srcpkgname instunitid unitid modulenam
sourcePackageId :: srcpkgid,
packageName :: srcpkgname,
packageVersion :: Version,
- mungedPackageName :: Maybe srcpkgname,
- libName :: Maybe srcpkgname,
+ sourceLibName :: Maybe srcpkgname,
abiHash :: String,
depends :: [instunitid],
-- | Like 'depends', but each dependency is annotated with the
@@ -184,8 +183,7 @@ emptyInstalledPackageInfo =
sourcePackageId = fromStringRep BS.empty,
packageName = fromStringRep BS.empty,
packageVersion = Version [] [],
- mungedPackageName = Nothing,
- libName = Nothing,
+ sourceLibName = Nothing,
abiHash = "",
depends = [],
abiDepends = [],
@@ -444,7 +442,7 @@ instance (RepInstalledPackageInfo a b c d e f g) =>
put (InstalledPackageInfo
unitId componentId instantiatedWith sourcePackageId
packageName packageVersion
- mungedPackageName libName
+ sourceLibName
abiHash depends abiDepends importDirs
hsLibraries extraLibraries extraGHCiLibraries
libraryDirs libraryDynDirs
@@ -457,8 +455,7 @@ instance (RepInstalledPackageInfo a b c d e f g) =>
put (toStringRep sourcePackageId)
put (toStringRep packageName)
put packageVersion
- put (fmap toStringRep mungedPackageName)
- put (fmap toStringRep libName)
+ put (fmap toStringRep sourceLibName)
put (toStringRep unitId)
put (toStringRep componentId)
put (map (\(mod_name, mod) -> (toStringRep mod_name, toDbModule mod))
@@ -491,8 +488,7 @@ instance (RepInstalledPackageInfo a b c d e f g) =>
sourcePackageId <- get
packageName <- get
packageVersion <- get
- mungedPackageName <- get
- libName <- get
+ sourceLibName <- get
unitId <- get
componentId <- get
instantiatedWith <- get
@@ -525,8 +521,7 @@ instance (RepInstalledPackageInfo a b c d e f g) =>
instantiatedWith)
(fromStringRep sourcePackageId)
(fromStringRep packageName) packageVersion
- (fmap fromStringRep mungedPackageName)
- (fmap fromStringRep libName)
+ (fmap fromStringRep sourceLibName)
abiHash
(map fromStringRep depends)
(map (\(k,v) -> (fromStringRep k, v)) abiDepends)