summaryrefslogtreecommitdiff
path: root/testsuite/tests/package
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/package')
-rw-r--r--testsuite/tests/package/T4806.hs1
-rw-r--r--testsuite/tests/package/T4806.stderr6
-rw-r--r--testsuite/tests/package/T4806a.hs1
-rw-r--r--testsuite/tests/package/T4806a.stderr7
-rw-r--r--testsuite/tests/package/all.T5
-rw-r--r--testsuite/tests/package/package01e.stderr16
-rw-r--r--testsuite/tests/package/package06e.stderr16
-rw-r--r--testsuite/tests/package/package07e.stderr24
-rw-r--r--testsuite/tests/package/package08e.stderr24
9 files changed, 73 insertions, 27 deletions
diff --git a/testsuite/tests/package/T4806.hs b/testsuite/tests/package/T4806.hs
new file mode 100644
index 0000000000..781cfef1ac
--- /dev/null
+++ b/testsuite/tests/package/T4806.hs
@@ -0,0 +1 @@
+import Data.Map
diff --git a/testsuite/tests/package/T4806.stderr b/testsuite/tests/package/T4806.stderr
new file mode 100644
index 0000000000..99bde2ec0d
--- /dev/null
+++ b/testsuite/tests/package/T4806.stderr
@@ -0,0 +1,6 @@
+
+T4806.hs:1:1: error:
+ Could not load module ‘Data.Map’
+ It is a member of the package ‘containers-0.6.0.1’
+ which is ignored due to an -ignore-package flag
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
diff --git a/testsuite/tests/package/T4806a.hs b/testsuite/tests/package/T4806a.hs
new file mode 100644
index 0000000000..781cfef1ac
--- /dev/null
+++ b/testsuite/tests/package/T4806a.hs
@@ -0,0 +1 @@
+import Data.Map
diff --git a/testsuite/tests/package/T4806a.stderr b/testsuite/tests/package/T4806a.stderr
new file mode 100644
index 0000000000..3d768a64b6
--- /dev/null
+++ b/testsuite/tests/package/T4806a.stderr
@@ -0,0 +1,7 @@
+
+T4806a.hs:1:1: error:
+ Could not load module ‘Data.Map’
+ It is a member of the package ‘containers-0.6.0.1’
+ which is unusable because the -ignore-package flag was used to ignore at least one of its dependencies:
+ deepseq-1.4.4.0
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
diff --git a/testsuite/tests/package/all.T b/testsuite/tests/package/all.T
index 129ae8540c..869abb1a7a 100644
--- a/testsuite/tests/package/all.T
+++ b/testsuite/tests/package/all.T
@@ -6,7 +6,7 @@ inc_ghc = '-package ghc '
hide_ghc = '-hide-package ghc '
test('package01', normal, compile, [hide_all + incr_containers])
-test('package01e', normal, compile_fail, [hide_all + incr_containers])
+test('package01e', normalise_version('containers'), compile_fail, [hide_all + incr_containers])
test('package02', normal, compile, [hide_all + inc_containers + incr_containers])
test('package03', normal, compile, [hide_all + incr_containers + inc_containers])
test('package04', normal, compile, [incr_containers])
@@ -17,3 +17,6 @@ test('package07e', normalise_version('ghc'), compile_fail, [incr_ghc + inc_ghc +
test('package08e', normalise_version('ghc'), compile_fail, [incr_ghc + hide_ghc])
test('package09e', normal, compile_fail, ['-package "containers (Data.Map as M, Data.Set as M)"'])
test('package10', normal, compile, ['-hide-all-packages -package "ghc (UniqFM as Prelude)" '])
+
+test('T4806', normalise_version('containers'), compile_fail, ['-ignore-package containers'])
+test('T4806a', normalise_version('containers'), compile_fail, ['-ignore-package deepseq'])
diff --git a/testsuite/tests/package/package01e.stderr b/testsuite/tests/package/package01e.stderr
index cfde9a7b28..3381a1bd42 100644
--- a/testsuite/tests/package/package01e.stderr
+++ b/testsuite/tests/package/package01e.stderr
@@ -1,10 +1,14 @@
package01e.hs:2:1: error:
- Could not find module ‘Data.Map’
- It is a member of the hidden package ‘containers-0.5.10.2’.
- Use -v to see a list of the files searched for.
+ Could not load module ‘Data.Map’
+ It is a member of the hidden package ‘containers-0.6.0.1’.
+ You can run ‘:set -package containers’ to expose it.
+ (Note: this unloads all the modules in the current scope.)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
package01e.hs:3:1: error:
- Could not find module ‘Data.IntMap’
- It is a member of the hidden package ‘containers-0.5.10.2’.
- Use -v to see a list of the files searched for.
+ Could not load module ‘Data.IntMap’
+ It is a member of the hidden package ‘containers-0.6.0.1’.
+ You can run ‘:set -package containers’ to expose it.
+ (Note: this unloads all the modules in the current scope.)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
diff --git a/testsuite/tests/package/package06e.stderr b/testsuite/tests/package/package06e.stderr
index c634d2d46c..12d721223c 100644
--- a/testsuite/tests/package/package06e.stderr
+++ b/testsuite/tests/package/package06e.stderr
@@ -1,10 +1,14 @@
package06e.hs:2:1: error:
- Could not find module ‘HsTypes’
- It is a member of the hidden package ‘ghc-8.1’.
- Use -v to see a list of the files searched for.
+ Could not load module ‘HsTypes’
+ It is a member of the hidden package ‘ghc-8.7’.
+ You can run ‘:set -package ghc’ to expose it.
+ (Note: this unloads all the modules in the current scope.)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
package06e.hs:3:1: error:
- Could not find module ‘UniqFM’
- It is a member of the hidden package ‘ghc-8.1’.
- Use -v to see a list of the files searched for.
+ Could not load module ‘UniqFM’
+ It is a member of the hidden package ‘ghc-8.7’.
+ You can run ‘:set -package ghc’ to expose it.
+ (Note: this unloads all the modules in the current scope.)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
diff --git a/testsuite/tests/package/package07e.stderr b/testsuite/tests/package/package07e.stderr
index a446a47247..2678972a78 100644
--- a/testsuite/tests/package/package07e.stderr
+++ b/testsuite/tests/package/package07e.stderr
@@ -1,16 +1,26 @@
package07e.hs:2:1: error:
Could not find module ‘MyHsTypes’
- Use -v to see a list of the files searched for.
+ Perhaps you meant HsTypes (needs flag -package-key ghc-8.7)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
package07e.hs:3:1: error:
- Could not find module ‘HsTypes’
- Use -v to see a list of the files searched for.
+ Could not load module ‘HsTypes’
+ It is a member of the hidden package ‘ghc-8.7’.
+ You can run ‘:set -package ghc’ to expose it.
+ (Note: this unloads all the modules in the current scope.)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
package07e.hs:4:1: error:
- Could not find module ‘HsUtils’
- Use -v to see a list of the files searched for.
+ Could not load module ‘HsUtils’
+ It is a member of the hidden package ‘ghc-8.7’.
+ You can run ‘:set -package ghc’ to expose it.
+ (Note: this unloads all the modules in the current scope.)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
package07e.hs:5:1: error:
- Could not find module ‘UniqFM’
- Use -v to see a list of the files searched for.
+ Could not load module ‘UniqFM’
+ It is a member of the hidden package ‘ghc-8.7’.
+ You can run ‘:set -package ghc’ to expose it.
+ (Note: this unloads all the modules in the current scope.)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
diff --git a/testsuite/tests/package/package08e.stderr b/testsuite/tests/package/package08e.stderr
index 3d8d2321b7..f02e9d6da3 100644
--- a/testsuite/tests/package/package08e.stderr
+++ b/testsuite/tests/package/package08e.stderr
@@ -1,16 +1,26 @@
package08e.hs:2:1: error:
Could not find module ‘MyHsTypes’
- Use -v to see a list of the files searched for.
+ Perhaps you meant HsTypes (needs flag -package-key ghc-8.7)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
package08e.hs:3:1: error:
- Could not find module ‘HsTypes’
- Use -v to see a list of the files searched for.
+ Could not load module ‘HsTypes’
+ It is a member of the hidden package ‘ghc-8.7’.
+ You can run ‘:set -package ghc’ to expose it.
+ (Note: this unloads all the modules in the current scope.)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
package08e.hs:4:1: error:
- Could not find module ‘HsUtils’
- Use -v to see a list of the files searched for.
+ Could not load module ‘HsUtils’
+ It is a member of the hidden package ‘ghc-8.7’.
+ You can run ‘:set -package ghc’ to expose it.
+ (Note: this unloads all the modules in the current scope.)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.
package08e.hs:5:1: error:
- Could not find module ‘UniqFM’
- Use -v to see a list of the files searched for.
+ Could not load module ‘UniqFM’
+ It is a member of the hidden package ‘ghc-8.7’.
+ You can run ‘:set -package ghc’ to expose it.
+ (Note: this unloads all the modules in the current scope.)
+ Use -v (or `:set -v` in ghci) to see a list of the files searched for.