@@ -19,7 +19,7 @@ import qualified Reporting.Render.Type as RenderType
1919import qualified Reporting.Report as Report
2020import qualified Reporting.Helpers as Help
2121import Reporting.Helpers
22− ( Doc, (<>), dullyellow, fillSep, i2t, indent, maybeYouWant, reflowParagraph, text
22+ ( Doc, (<>), dullyellow, fillSep, i2t, indent, reflowParagraph, text
2323 )
2424
2525
@@ -141,14 +141,18 @@ toReport localizer err =
141141 variableName =
142142 kind <> " `" <> name <> "`"
143143
144− learnMore =
145− Help.toHint $
146− "New to Elm? Unsure exactly how `import` works? Learn all about it here: "
144+ learnMore orMaybe =
145+ Help.reflowParagraph $
146+ orMaybe <> " `import` works different than you expect? Learn all about it here: "
147147 <> Help.hintLink "imports"
148148
149149 namingError overview maybeStarter specializedSuggestions =
150150 Report.report "NAMING ERROR" Nothing overview $
151− maybeYouWant maybeStarter specializedSuggestions (Just learnMore)
151+ case Help.maybeYouWant' maybeStarter specializedSuggestions of
152+ Nothing ->
153+ learnMore "Maybe"
154+ Just doc ->
155+ Help.stack [ doc, learnMore "Or maybe" ]
152156 in
153157 case problem of
154158 Ambiguous ->
@@ -244,17 +248,17 @@ toReport localizer err =
244248 ModuleNotFound suggestions ->
245249 Report.report "IMPORT ERROR" Nothing
246250 ("Could not find a module named `" <> ModuleName.toText name <> "`")
247− (maybeYouWant Nothing suggestions Nothing)
251+ (Help.maybeYouWant Nothing suggestions)
248252
249253 ValueNotFound value suggestions ->
250254 Report.report "IMPORT ERROR" Nothing
251255 ("Module `" <> ModuleName.toText name <> "` does not expose `" <> value <> "`")
252− (maybeYouWant Nothing suggestions Nothing)
256+ (Help.maybeYouWant Nothing suggestions)
253257
254258 Export name suggestions ->
255259 Report.report "EXPOSING ERROR" Nothing
256260 ("Could not expose `" <> name <> "` which is not defined in this module.")
257− (maybeYouWant Nothing suggestions Nothing)
261+ (Help.maybeYouWant Nothing suggestions)
258262
259263 DuplicateExport name ->
260264 Report.report "EXPOSING ERROR" Nothing