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

Formatting unspaced operators #810

Open
jfmengels opened this issue Mar 16, 2023 · 2 comments
Open

Formatting unspaced operators #810

jfmengels opened this issue Mar 16, 2023 · 2 comments
Labels
0.9 (temporary label for search filtering) full operators list Features that require knowledge of the complete list of defined operators
Milestone

Comments

@jfmengels
Copy link

I (too often) have code like this

Input:

a = f>>.field
b = g|>.field

Actual output (version 0.8.5):

a =
    f >>. field


b =
    g |>. field

Expected output:

a =
    f >> .field


b =
    g |> .field

I think the current behavior was correct for older versions of Elm, where >>. was potentially a valid Elm operator. Since 0.19, the operators are all known, and my thinking is that we could decide to try to end up in a state that it is more likely correct code (but is less agnostic about the operators).

@avh4
Copy link
Owner

avh4 commented Mar 17, 2023

😆 FYI, you already opened this issue #677

I'm adding a new label for issues that I think are good to do, but that will require complete knowledge of the possible operators (and thus will also require Elm 0.19): full operators list Features that require knowledge of the complete list of defined operators

@avh4 avh4 added 0.9 (temporary label for search filtering) full operators list Features that require knowledge of the complete list of defined operators labels Mar 17, 2023
@jfmengels
Copy link
Author

Ugh, I looked for it too and somehow missed it 😅
Feel free to close whichever!

@avh4 avh4 added this to the 0.9.1-exp milestone Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.9 (temporary label for search filtering) full operators list Features that require knowledge of the complete list of defined operators
Projects
None yet
Development

No branches or pull requests

2 participants