-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Import disambiguation: Corrects handling of fully-applied and one-sided sectioned operators in qualifying strategy #1294
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, and good test coverage
If you don't mind, could you unify the filename extension of golden tests data to |
Yes, especially when the "expected" version is better source, like in this case. |
Ah, I just followed the pattern used in Eval plugin, but, yes, those |
Did you see my comment? I think it's enough to consider only |
Oops, sorry I overlooked your comment 🙇 I think your suggestion makes sense. Thanks! |
very happy to see more contributors with the commit bit, congrats and thanks for your great work here 🙂 |
The current implementation of the import disambiguation (introduced in #1264) always qualifies operators with extra parens.
This can destroy the fully- or partially-applied infix operators, as follows:
↓
This PR just fixes it, inspecting the buffer whether the code in question is already parenthesised or not.