on master help sign in
remove hint about adding [] around expressions
0cd361dEvan Czaplicki
compiler/src/Reporting/Error/Type.hs−4
@@ -431,10 +431,6 @@ problemToHint problem =
431 ]
431 ]
432 ]
432 ]
433
433
434− T.AnythingToList ->
435− [ D.toSimpleHint "Did you forget to add [] around it?"
436− ]
437−
438 T.ArityMismatch x y ->
434 T.ArityMismatch x y ->
439 [ D.toSimpleHint $
435 [ D.toSimpleHint $
440 if x < y then
436 if x < y then
compiler/src/Type/Error.hs+1−2
@@ -175,7 +175,6 @@ data Problem
175 | StringToFloat
175 | StringToFloat
176 | AnythingToBool
176 | AnythingToBool
177 | AnythingFromMaybe
177 | AnythingFromMaybe
178− | AnythingToList
179 | ArityMismatch Int Int
178 | ArityMismatch Int Int
180 | BadFlexSuper Direction Super Name.Name Type
179 | BadFlexSuper Direction Super Name.Name Type
181 | BadRigidVar Name.Name Type
180 | BadRigidVar Name.Name Type
@@ -301,7 +300,7 @@ toDiff localizer ctx tipe1 tipe2 =
301 different
300 different
302 (toDoc localizer ctx t1)
301 (toDoc localizer ctx t1)
303 (RT.apply ctx (D.dullyellow (L.toDoc localizer home name)) [toDoc localizer RT.App t2])
302 (RT.apply ctx (D.dullyellow (L.toDoc localizer home name)) [toDoc localizer RT.App t2])
304− (Bag.one AnythingToList)
303+ Bag.empty
305
304
306 (Alias home1 name1 args1 t1, t2) ->
305 (Alias home1 name1 args1 t1, t2) ->
307 case diffAliasedRecord localizer t1 t2 of
306 case diffAliasedRecord localizer t1 t2 of