on master help sign in
Make the error message nicer for type arity problems
commit032e14dd4374e7fb42abfc258714be316e361b83 authorEvan Czaplicki <evancz@users.noreply.github.com> dateTue 6 Mar 2018, 17:41 (9 years ago) parent32ff950
1 file changed+3−3
compiler/src/Reporting/Error/Canonicalize.hs+3−3
compiler/src/Reporting/Error/Canonicalize.hs+3−3
@@ -188,10 +188,10 @@ toReport source err =
188188 Report.toCodeSnippet source region Nothing
189189 (
190190 H.reflow $
191− "The `" <> N.toString name <> "` " <> thing <> " needs "
192− <> H.args expected <> ", but I only see " <> show actual <> ":"
191+ "The `" <> N.toString name <> "` " <> thing <> " was given " <> H.args actual <> ":"
193192 ,
194− "What is missing? Is there some typo?"
193+ H.reflow $
194+ "But it needs " <> H.args expected <> ". What is missing? Are some parentheses misplaced?"
195195 )
196196
197197 else