diff options
author | Chaitanya Koparkar <ckoparkar@gmail.com> | 2018-05-13 18:35:18 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-05-13 22:22:42 -0400 |
commit | 30c887d3b176a36b7affc27b118e0450d115df0c (patch) | |
tree | c098dc1b9c14dc750bfb7bfd4e2327c59df8d10d /compiler/main/Finder.hs | |
parent | d4abd031f6e8c2fa01f8949f60d8a02cca513804 (diff) | |
download | haskell-30c887d3b176a36b7affc27b118e0450d115df0c.tar.gz |
GHCi: Include a note in the hint to expose a hidden package
Test Plan: validate
Reviewers: bgamari, RyanGlScott, osa1
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
GHC Trac Issues: #15055
Differential Revision: https://phabricator.haskell.org/D4669
Diffstat (limited to 'compiler/main/Finder.hs')
-rw-r--r-- | compiler/main/Finder.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/main/Finder.hs b/compiler/main/Finder.hs index 9568ac154c..613c0a41dd 100644 --- a/compiler/main/Finder.hs +++ b/compiler/main/Finder.hs @@ -678,7 +678,8 @@ cantFindErr cannot_find _ dflags mod_name find_result = let pkg = expectJust "pkg_hidden" (lookupPackage dflags pkgid) in text "You can run" <+> quotes (text ":set -package " <> ppr (packageName pkg)) <+> - text "to expose it." + text "to expose it." $$ + text "(Note: this unloads all the modules in the current scope.)" mod_hidden pkg = text "it is a hidden module in the package" <+> quotes (ppr pkg) |