summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2015-08-29 12:25:28 +0200
committerBen Gamari <ben@smart-cactus.org>2015-08-29 13:08:18 +0200
commitcd2dc9e2cf80881e96b98d025c2848edeca11ba4 (patch)
treeb7d8bf47bf1345f7b49cb23928fb6114df44a467
parent0c823af84d80ac103528e54eda8e1c6bdf2bea69 (diff)
downloadhaskell-cd2dc9e2cf80881e96b98d025c2848edeca11ba4.tar.gz
ghc-pkg --enable-multi-instance should not complain about case sensitivity.
Test Plan: validate Reviewers: simonmar, bgamari, austin Reviewed By: bgamari, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1177
-rw-r--r--utils/ghc-pkg/Main.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index 1d80e97a5f..fbd7dae715 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -1665,7 +1665,8 @@ checkDuplicates db_stack pkg multi_instance update = do
uncasep = map toLower . display
dups = filter ((== uncasep pkgid) . uncasep) (map sourcePackageId pkgs)
- when (not update && not (null dups)) $ verror ForceAll $
+ when (not update && not multi_instance
+ && not (null dups)) $ verror ForceAll $
"Package names may be treated case-insensitively in the future.\n"++
"Package " ++ display pkgid ++
" overlaps with: " ++ unwords (map display dups)