@@ -302,16 +302,34 @@ mismatchToReport localizer (MismatchInfo hint leftType rightType maybeReason) =
305+ FunctionArity maybeName 0 actual region ->
308+ if actual == 1 then "an argument" else show actual ++ " arguments"
313+ "You are giving " ++ arg ++ " to something that is not a function!"
316+ prettyName name ++ " is not a function, but you are giving it " ++ arg ++ "!"
321+ (text "Maybe you forgot some parentheses? Or a comma?")
305 FunctionArity maybeName expected actual region ->
323 FunctionArity maybeName expected actual region ->
307− s = if expected <= 1 then "" else "s"
325+ s = if expected == 1 then "" else "s"
310 (Just region)
328 (Just region)
311 ( Help.capitalize (funcName maybeName) ++ " is expecting " ++ show expected
329 ( Help.capitalize (funcName maybeName) ++ " is expecting " ++ show expected
312 ++ " argument" ++ s ++ ", but was given " ++ show actual ++ "."
330 ++ " argument" ++ s ++ ", but was given " ++ show actual ++ "."
314− (text "Maybe you forgot some parentheses somewhere?")
332+ (text "Maybe you forgot some parentheses? Or a comma?")
316 BadTypeAnnotation name ->
334 BadTypeAnnotation name ->