summaryrefslogtreecommitdiff
path: root/testsuite/tests/cabal
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-04-14 10:04:10 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-04-26 23:56:18 -0400
commit06654a6e0e4c1f9eb58947439092ae27b00d8c10 (patch)
tree58832a08e590596b3a188fbb0a587ede973a3c8f /testsuite/tests/cabal
parent9d34f4546ab54c3dbb8f7be8f3e855d370592e8d (diff)
downloadhaskell-06654a6e0e4c1f9eb58947439092ae27b00d8c10.tar.gz
Correct treatment of rexported modules in mkModuleNameProvidersMap
Before we would get the incorrect error message saying that the rexporting package was the same as the defining package. I think this only affects error messages for now. ``` - it is bound as p-0.1.0.0:P2 by a reexport in package p-0.1.0.0 - it is bound as P by a reexport in package p-0.1.0.0 + it is bound as p-0.1.0.0:P2 by a reexport in package q-0.1.0.0 + it is bound as P by a reexport in package r-0.1.0.0 ``` and the output of `-ddump-mod-map` claimed.. ``` Moo moo-0.0.0.1 (hidden package, reexport by moo-0.0.0.1) ```
Diffstat (limited to 'testsuite/tests/cabal')
-rw-r--r--testsuite/tests/cabal/cabal05/cabal05.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/cabal/cabal05/cabal05.stderr b/testsuite/tests/cabal/cabal05/cabal05.stderr
index eb51115ab0..183c5319d1 100644
--- a/testsuite/tests/cabal/cabal05/cabal05.stderr
+++ b/testsuite/tests/cabal/cabal05/cabal05.stderr
@@ -1,5 +1,5 @@
T.hs:3:1: error:
Ambiguous module name ‘Conflict’:
- it is bound as p-0.1.0.0:P2 by a reexport in package p-0.1.0.0
- it is bound as P by a reexport in package p-0.1.0.0
+ it is bound as p-0.1.0.0:P2 by a reexport in package q-0.1.0.0
+ it is bound as P by a reexport in package r-0.1.0.0