on master help sign in
Do not claim it is an anonymous function

It is still a function. We are just not providing a name in the error message.

commit70f3f60b8688a2cd538a88a3e7825a57140559b7 authorEvan Czaplicki <evancz@users.noreply.github.com> dateFri 2 Jun 2017, 01:53 (9 years ago) parent60ca557
1 file changed+3−3
src/Reporting/Error/Type.hs+3−3
src/Reporting/Error/Type.hs+3−3
@@ -467,9 +467,9 @@ mismatchToReport localizer (MismatchInfo hint leftType rightType maybeReason) =
467467 Lambda ->
468468 report
469469 Nothing
470− "This anonymous function is being used in an unexpected way."
470+ "This function is being used in an unexpected way."
471471 ( cmpHint
472− "The anonymous function has type:"
472+ "The function has type:"
473473 "But you are trying to use it as:"
474474 []
475475 )
@@ -1052,7 +1052,7 @@ infiniteHint hint =
10521052 ( Nothing, "this shader" )
10531053
10541054 Lambda ->
1055− ( Nothing, "this anonymous function" )
1055+ ( Nothing, "this function" )
10561056
10571057 Access _ _ ->
10581058 ( Nothing, "this field access" )