summaryrefslogtreecommitdiff
path: root/compiler/rename
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2014-06-06 11:47:28 +0200
committerJoachim Breitner <mail@joachim-breitner.de>2014-06-06 13:16:48 +0200
commit009e86f5dd2bc2657be093c76ba679b7866b651a (patch)
tree463cc37c54972e74090f148a8d8ab04fec75d16f /compiler/rename
parentf9def077e0938513b62863f3018ad07017e79238 (diff)
downloadhaskell-009e86f5dd2bc2657be093c76ba679b7866b651a.tar.gz
Suggest Int when user writes int
and the other way around. This fixes #9177.
Diffstat (limited to 'compiler/rename')
-rw-r--r--compiler/rename/RnEnv.lhs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rename/RnEnv.lhs b/compiler/rename/RnEnv.lhs
index d79fae42f7..d0c51d3fa5 100644
--- a/compiler/rename/RnEnv.lhs
+++ b/compiler/rename/RnEnv.lhs
@@ -1478,6 +1478,7 @@ unknownNameSuggestErr where_look tried_rdr_name
correct_name_space occ = occNameSpace occ == tried_ns
&& isSymOcc occ == tried_is_sym
+ || toRelatedNameSpace occ == Just tried_occ
-- Treat operator and non-operators as non-matching
-- This heuristic avoids things like
-- Not in scope 'f'; perhaps you meant '+' (from Prelude)