summaryrefslogtreecommitdiff
path: root/compiler/main/Packages.hs
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 /compiler/main/Packages.hs
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 'compiler/main/Packages.hs')
-rw-r--r--compiler/main/Packages.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/Packages.hs b/compiler/main/Packages.hs
index 10ef0d42ec..2c5833fae4 100644
--- a/compiler/main/Packages.hs
+++ b/compiler/main/Packages.hs
@@ -1940,7 +1940,7 @@ componentIdString :: DynFlags -> ComponentId -> Maybe String
componentIdString dflags cid = do
conf <- lookupInstalledPackage dflags (componentIdToInstalledUnitId cid)
return $
- case libName conf of
+ case sourceLibName conf of
Nothing -> sourcePackageIdString conf
Just (PackageName libname) ->
packageNameString conf