While looking at PR #2355 from @mildsunrise I noticed a ridiculous number of uses of with. These turn out to not be localized to Data.List.Properties but come from uses of with in Data.List.Base. The vast majority of them can be simplified, with a really nice knock-on effect to simplify quite a few proofs.
But I'm guessing this is yet another case of breaking change, so has to wait until 3.0? I think we should outlaw uses of with in function definitions, if favour of defining explicit 'helper' functions.
While looking at PR #2355 from @mildsunrise I noticed a ridiculous number of uses of
with. These turn out to not be localized toData.List.Propertiesbut come from uses ofwithinData.List.Base. The vast majority of them can be simplified, with a really nice knock-on effect to simplify quite a few proofs.But I'm guessing this is yet another case of breaking change, so has to wait until 3.0? I think we should outlaw uses of
within function definitions, if favour of defining explicit 'helper' functions.Data.List.Base.mapMaybe(#2359; deprecate use ofwith#2123) #2361Data.List.Base.unfold(#2359; deprecate use ofwith#2123) #2364Data.List.Base.scan*and their properties #2395Data.List.Base(fix #2359; deprecate use ofwith#2123) #2365Data.List.Base(fix #2359; deprecate use ofwith#2123) #2365Data.List.Base(fix #2359; deprecate use ofwith#2123) #2365Data.List.Base(fix #2359; deprecate use ofwith#2123) #2365Data.List.Base(fix #2359; deprecate use of with #2123) #2366Data.List.Base(fix #2359; deprecate use of with #2123) #2366Data.List.Base(fix #2359; deprecate use ofwith#2123) #2365