on master help sign in
Make it clearer that the suggestions are not all possible modules

It is only able to suggest modules that it has seen before, or modules it happened to load during the current build. If it is a typo, there may actually be a file there with the right name, but it wouldn't get suggested if no one had ever referred to it by that name.

commit12f395e1c589f8f3bcb4d3bf401d75539ef1c596 authorEvan Czaplicki <evancz@users.noreply.github.com> dateThu 2 May 2019, 16:25 (7 years ago) parentf46d54f
1 file changed+2−2
compiler/src/Reporting/Error/Import.hs+2−2
compiler/src/Reporting/Error/Import.hs+2−2
@@ -56,8 +56,8 @@ toReport source (Error region name unimportedModules problem) =
5656 D.stack
5757 [
5858 D.reflow $
59− "But I cannot find it! I checked the \"dependencies\" and \"source-directories\"\
60− \ listend in your elm.json, but the closest module names I could find were:"
59+ "I checked the \"dependencies\" and \"source-directories\" listend in your elm.json,\
60+ \ but I cannot find it! Maybe it is a typo for one of these names?"
6161 ,
6262 D.dullyellow $ D.indent 4 $ D.vcat $
6363 map D.fromName (toSuggestions name unimportedModules)