jfmengels / elm-review-simplify

Provides elm-review rules to simplify your Elm code
https://package.elm-lang.org/packages/jfmengels/elm-review-simplify/latest/
BSD 3-Clause "New" or "Revised" License
19 stars 9 forks source link

Simplify existing checks using `fullyAppliedLastArg` #233

Closed lue-bird closed 1 year ago

lue-bird commented 1 year ago

Many general checks/fixes were still taking the last arg as an argument instead of inferring it.

Through changing this, I also discovered a bug in intersect where intersect empty would be fixed to empty instead of always empty.

In a follow-up PR, I'd like to make a general fix/check cleanup.

github-actions[bot] commented 1 year ago

The branch can be tried out by running:

elm-review --template jfmengels/elm-review-simplify/preview