diff options
author | Chaitanya Koparkar <ckoparkar@gmail.com> | 2018-05-03 12:39:45 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-05-03 12:39:55 -0400 |
commit | 721e82644b49da59e84c409562a63e7df75068bb (patch) | |
tree | c29522ea776858e0a51dc8e4b27f306ef174a3b6 /testsuite/tests/package | |
parent | 866525a1765715b8b9902e1bd53b9af1c7a93a30 (diff) | |
download | haskell-721e82644b49da59e84c409562a63e7df75068bb.tar.gz |
GHCi: Improve the error message for hidden packages
Test Plan: make test TEST=T15055
Reviewers: bgamari, RyanGlScott, osa1, Iceland_jack
Reviewed By: osa1
Subscribers: ulysses4ever, thomie, carter
GHC Trac Issues: #15055
Differential Revision: https://phabricator.haskell.org/D4621
Diffstat (limited to 'testsuite/tests/package')
-rw-r--r-- | testsuite/tests/package/package01e.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/package/package06e.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/package/package07e.stderr | 3 | ||||
-rw-r--r-- | testsuite/tests/package/package08e.stderr | 3 |
4 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/package/package01e.stderr b/testsuite/tests/package/package01e.stderr index 7dd9f699d9..a755991432 100644 --- a/testsuite/tests/package/package01e.stderr +++ b/testsuite/tests/package/package01e.stderr @@ -2,9 +2,11 @@ package01e.hs:2:1: error: Could not find module ‘Data.Map’ It is a member of the hidden package ‘containers-0.5.11.0’. + You can run ‘:set -package containers’ to expose it. Use -v 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.11.0’. + You can run ‘:set -package containers’ to expose it. Use -v 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..59aeb37682 100644 --- a/testsuite/tests/package/package06e.stderr +++ b/testsuite/tests/package/package06e.stderr @@ -2,9 +2,11 @@ package06e.hs:2:1: error: Could not find module ‘HsTypes’ It is a member of the hidden package ‘ghc-8.1’. + You can run ‘:set -package ghc’ to expose it. Use -v 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’. + You can run ‘:set -package ghc’ to expose it. Use -v to see a list of the files searched for. diff --git a/testsuite/tests/package/package07e.stderr b/testsuite/tests/package/package07e.stderr index 9ca835f7ac..d167508659 100644 --- a/testsuite/tests/package/package07e.stderr +++ b/testsuite/tests/package/package07e.stderr @@ -7,14 +7,17 @@ package07e.hs:2:1: error: package07e.hs:3:1: error: Could not find module ‘HsTypes’ It is a member of the hidden package ‘ghc-8.5’. + You can run ‘:set -package ghc’ to expose it. Use -v to see a list of the files searched for. package07e.hs:4:1: error: Could not find module ‘HsUtils’ It is a member of the hidden package ‘ghc-8.5’. + You can run ‘:set -package ghc’ to expose it. Use -v to see a list of the files searched for. package07e.hs:5:1: error: Could not find module ‘UniqFM’ It is a member of the hidden package ‘ghc-8.5’. + You can run ‘:set -package ghc’ to expose it. Use -v to see a list of the files searched for. diff --git a/testsuite/tests/package/package08e.stderr b/testsuite/tests/package/package08e.stderr index 5992a4ca49..922c643c89 100644 --- a/testsuite/tests/package/package08e.stderr +++ b/testsuite/tests/package/package08e.stderr @@ -7,14 +7,17 @@ package08e.hs:2:1: error: package08e.hs:3:1: error: Could not find module ‘HsTypes’ It is a member of the hidden package ‘ghc-8.5’. + You can run ‘:set -package ghc’ to expose it. Use -v to see a list of the files searched for. package08e.hs:4:1: error: Could not find module ‘HsUtils’ It is a member of the hidden package ‘ghc-8.5’. + You can run ‘:set -package ghc’ to expose it. Use -v to see a list of the files searched for. package08e.hs:5:1: error: Could not find module ‘UniqFM’ It is a member of the hidden package ‘ghc-8.5’. + You can run ‘:set -package ghc’ to expose it. Use -v to see a list of the files searched for. |