From d8e8d85db6bf2b1fa0c0219f558507031dd59c26 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 14 Feb 2005 16:49:50 +0000 Subject: [PATCH] [project @ 2005-02-14 16:49:50 by simonmar] Improve the module-not-found error message when we didn't actually search for it anywhere. This happens when we know all the places it might be: either in the current program, or a package. --- ghc/compiler/main/Finder.lhs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ghc/compiler/main/Finder.lhs b/ghc/compiler/main/Finder.lhs index 6173853..260ee07 100644 --- a/ghc/compiler/main/Finder.lhs +++ b/ghc/compiler/main/Finder.lhs @@ -429,6 +429,8 @@ cantFindError dflags mod_name find_result <+> ppr pkg) NotFound files + | null files + -> ptext SLIT("it is not a module in the current program, or in any known package.") | verbosity dflags < 3 -> ptext SLIT("use -v to see a list of the files searched for") | otherwise -- 1.7.10.4