@@ -305,7 +305,7 @@ mismatchToReport localizer (MismatchInfo hint leftType rightType maybeReason) =
305 ( cmpHint
305 ( cmpHint
306 (Help.capitalize (funcName maybeName) ++ " is expecting the argument to be:")
306 (Help.capitalize (funcName maybeName) ++ " is expecting the argument to be:")
307 "But it is:"
307 "But it is:"
308− []
308+ (functionHint maybeName)
311 UnexpectedArg maybeName index _totalArgs region ->
311 UnexpectedArg maybeName index _totalArgs region ->
@@ -319,7 +319,9 @@ mismatchToReport localizer (MismatchInfo hint leftType rightType maybeReason) =
319 ++ Help.ordinalize index ++ " argument to be:"
319 ++ Help.ordinalize index ++ " argument to be:"
321 "But it is:"
321 "But it is:"
322+ ( functionHint maybeName
322− ( if index == 1 then
324+ if index == 1 then
325 [ "I always figure out the type of arguments from left to right. If an argument\
327 [ "I always figure out the type of arguments from left to right. If an argument\
@@ -515,6 +517,7 @@ comparisonHint localizer leftType rightType leftWords rightWords finalHints =
516-- BINOP HINTS
518-- BINOP HINTS
518binopHint :: Var.Canonical -> Type.Canonical -> Type.Canonical -> [String]
521binopHint :: Var.Canonical -> Type.Canonical -> Type.Canonical -> [String]
519binopHint op leftType rightType =
522binopHint op leftType rightType =
@@ -540,6 +543,25 @@ binopHint op leftType rightType =
549+functionHint :: Maybe Var.Canonical -> [String]
550+functionHint maybeName =
556+ if Var.inHtml ["Html","App"] "program" == name then
557+ [ "Does your program have flags? Maybe you want `programWithFlags` instead."
543-- MISMATCH HELPERS
565-- MISMATCH HELPERS