-
Notifications
You must be signed in to change notification settings - Fork 259
Open
Description
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.
- mapMaybe Improve
Data.List.Base.mapMaybe(#2359; deprecate use ofwith#2123) #2361 - unalignWith
- unfold Improve
Data.List.Base.unfold(#2359; deprecate use ofwith#2123) #2364 - scanr -- but already in another PR? Refactor
Data.List.Base.scan*and their properties #2395 - initLast -- ditto?
- unsnoc
- takeWhile Improve
Data.List.Base(fix #2359; deprecate use ofwith#2123) #2365 - dropWhile Improve
Data.List.Base(fix #2359; deprecate use ofwith#2123) #2365 - filter
- partition Improve
Data.List.Base(fix #2359; deprecate use ofwith#2123) #2365 - span Improve
Data.List.Base(fix #2359; deprecate use ofwith#2123) #2365 - linesBy Improve
Data.List.Base(fix #2359; deprecate use of with #2123) #2366 - wordsBy Improve
Data.List.Base(fix #2359; deprecate use of with #2123) #2366 - derun Improve
Data.List.Base(fix #2359; deprecate use ofwith#2123) #2365
jamesmckinna
Metadata
Metadata
Assignees
Labels
No labels