on master help sign in
Improve error messages for unknown operators a bit
commitf38d2bffb8d8a546b1de235cf44a5b368434c174 authorEvan Czaplicki <evancz@users.noreply.github.com> dateMon 12 Mar 2018, 16:22 (9 years ago) parent6b8e824
1 file changed+3−3
compiler/src/Reporting/Error/Canonicalize.hs+3−3
compiler/src/Reporting/Error/Canonicalize.hs+3−3
@@ -461,7 +461,7 @@ toReport source err =
461461 Report.toCodeSnippet source region Nothing
462462 (
463463 H.reflow $
464− "I do not recognize this (**) operator:"
464+ "I do not recognize the (**) operator:"
465465 ,
466466 H.reflow $
467467 "Switch to (^) for exponentiation. Or switch to (*) for multiplication."
@@ -474,13 +474,13 @@ toReport source err =
474474 H.nearbyNames N.toString op (Set.toList locals)
475475
476476 format altOp =
477− H.dullyellow $ "(" <> altOp <> ")"
477+ H.green $ "(" <> altOp <> ")"
478478 in
479479 Report.Report "UNKNOWN OPERATOR" region suggestions $
480480 Report.toCodeSnippet source region Nothing
481481 (
482482 H.reflow $
483− "I do not recognize this (" ++ N.toString op ++ ") operator."
483+ "I do not recognize the (" ++ N.toString op ++ ") operator."
484484 ,
485485 H.fillSep $
486486 ["Is","there","an","`import`","and","`exposing`","entry","for","it?"]