From cd2dc9e2cf80881e96b98d025c2848edeca11ba4 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 29 Aug 2015 12:25:28 +0200 Subject: 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 --- utils/ghc-pkg/Main.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/ghc-pkg') 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) -- cgit v1.2.1