remove `\ ->`
lue-bird opened this issue · 2 comments
lue-bird commented
For example, when one moves an argument from a lambda to the declaration level, some \ ->
might remain.
These have to be removed manually, while elm-format
could remove those empty lambda arguments patterns automatically.
Edit: closing because applying this could be confusing (e.g if you wanted to type \_->
and the underscore didn't register) and comes up relatively rarely if at all.
kutyel commented
@lue-bird can you provide a sample Elm code with the before/after how it should look? I might have time to try and fix this 😄
lue-bird commented
-description content = \ -> Ui.text content
+description content = Ui.text content
-|> List.map (\-> Ui.text)
+|> List.map Ui.text
Or are you looking for situations where one might remove lambda arguments?