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

Add Maybe.mapN simplifications #230

Closed lue-bird closed 1 year ago

lue-bird commented 1 year ago

Adds the Maybe.mapN simplifications from #2

-- the following simplifications for map2 work for all Maybe.mapN
Maybe.map2 f firstMaybe Nothing --> Nothing
Maybe.map2 f (Just a) (Just b) --> Just (f a b)
github-actions[bot] commented 1 year ago

The branch can be tried out by running:

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