summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-02-08 09:01:21 +0000
committerSimon Marlow <marlowsd@gmail.com>2011-02-08 09:01:21 +0000
commitc21f0768fcaa95720e22ed5d7814b398645f6c17 (patch)
tree84fcba3d8335f9616efea41bd965a60588ba52d6
parent28ca359b42fb5d62207f72270d20e386968eb1a9 (diff)
downloadhaskell-c21f0768fcaa95720e22ed5d7814b398645f6c17.tar.gz
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).
-rw-r--r--compiler/main/Finder.lhs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/Finder.lhs b/compiler/main/Finder.lhs
index 5b1bae4253..d8a627167c 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