on master help sign in
remove hint about adding [] around expressions

There is a decent amount of feedback that it is confusing https://github.com/elm/error-message-catalog/issues/296 and I suspect it's not that helpful in practice.

commit0cd361d54c3a56940ebf94882069adf1fbc4600e authorEvan Czaplicki <evancz@users.noreply.github.com> dateFri 26 Jul 2019, 17:47 (7 years ago) parent545b178
2 files changed+1−6
compiler/src/Reporting/Error/Type.hs−4 compiler/src/Type/Error.hs+1−2
compiler/src/Reporting/Error/Type.hs−4
@@ -431,10 +431,6 @@ problemToHint problem =
431431 ]
432432 ]
433433
434− T.AnythingToList ->
435− [ D.toSimpleHint "Did you forget to add [] around it?"
436− ]
437−
438434 T.ArityMismatch x y ->
439435 [ D.toSimpleHint $
440436 if x < y then
compiler/src/Type/Error.hs+1−2
@@ -175,7 +175,6 @@ data Problem
175175 | StringToFloat
176176 | AnythingToBool
177177 | AnythingFromMaybe
178− | AnythingToList
179178 | ArityMismatch Int Int
180179 | BadFlexSuper Direction Super Name.Name Type
181180 | BadRigidVar Name.Name Type
@@ -301,7 +300,7 @@ toDiff localizer ctx tipe1 tipe2 =
301300 different
302301 (toDoc localizer ctx t1)
303302 (RT.apply ctx (D.dullyellow (L.toDoc localizer home name)) [toDoc localizer RT.App t2])
304− (Bag.one AnythingToList)
303+ Bag.empty
305304
306305 (Alias home1 name1 args1 t1, t2) ->
307306 case diffAliasedRecord localizer t1 t2 of