Skip to content

Commit 0cd361d

Browse files
committed
remove hint about adding [] around expressions
There is a decent amount of feedback that it is confusing elm/error-message-catalog#296 and I suspect it's not that helpful in practice.
1 parent 545b178 commit 0cd361d

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

compiler/src/Reporting/Error/Type.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)