From c21f0768fcaa95720e22ed5d7814b398645f6c17 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 8 Feb 2011 09:01:21 +0000 Subject: [PATCH] Fix bug introduced in "Implement fuzzy matching for the Finder" The finder was reporting a hidden package when it meant a hidden module, and vice versa (looks like a typo). --- compiler/main/Finder.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/main/Finder.lhs b/compiler/main/Finder.lhs index 5b1bae4..d8a6271 100644 --- a/compiler/main/Finder.lhs +++ b/compiler/main/Finder.lhs @@ -196,7 +196,7 @@ findExposedPackageModule hsc_env mod_name mb_pkg Right found | null found_exposed -- Found, but with no exposed copies -> return (NotFound { fr_paths = [], fr_pkg = Nothing - , fr_pkgs_hidden = mod_hiddens, fr_mods_hidden = pkg_hiddens + , fr_pkgs_hidden = pkg_hiddens, fr_mods_hidden = mod_hiddens , fr_suggestions = [] }) | [(pkg_conf,_)] <- found_exposed -- Found uniquely -- 1.7.10.4