-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Opening parens make unstable/incorrect indentation for an Enum wrapping a record #2943
Comments
Hi Paul, This is an interesting case. Thanks for reporting it! My first impression is that the parentheses turn the application into a sequential expression. ((a
b)) Where I'm not sure what the best way would be to solve this one. Changing this behaviour will for sure break something else. |
I'm not sure I follow. Are you saying that
That seems weird to me but it could be the case. |
Oh no, it isn't and that is part of the problem. |
Oh right, that's what I thought. I got confused that changing the behaviour will break something else - what are you thinking of there? |
Well, this is tricky as there a multiple places where we deal with parentheses. (a
b) Where I initially was thinking of maybe touching this and having Now, we might want to have a sanity check on the formatting of the application. I took a stab at this idea at #2946 |
Issue created from fantomas-online
Code
Result
Expected Result
Problem description
AFAICT, this only happens when we have 2 parens around this, which happened in my original example because I was piping the result.
Extra information
Options
Fantomas main branch at 1/1/1990
The text was updated successfully, but these errors were encountered: