Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove \ -> #774

Open
lue-bird opened this issue Sep 16, 2022 · 2 comments
Open

remove \ -> #774

lue-bird opened this issue Sep 16, 2022 · 2 comments

Comments

@lue-bird
Copy link

lue-bird commented Sep 16, 2022

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.

@kutyel
Copy link
Contributor

kutyel commented Feb 27, 2023

@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
Copy link
Author

lue-bird commented Feb 27, 2023

-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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants