-
Notifications
You must be signed in to change notification settings - Fork 59
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
AST changes when formatting type applications #211
Comments
Thanks. That's odd. I can't think of anything relevant that we alter from Ormolu here. And I'm quite surprised this isn't caught be our test suite. |
I've tried Ormolu 0.5 and Fourmolu 0.7, both built with the same Enabling/disabling |
@georgefst Just to clarify, do you mean you can reproduce this bug with Ormolu as well? (Also, hi, isn't it funny that I was adamant I hate autoformatting at ZuriHac, and here I am weeks later, auto-formatting 😝 Great job to all of you with Fourmolu - I'm happy with it!) |
I mean I can reproduce with Fourmolu but not Ormolu. @brandonchinn178 Any ideas? A bad merge somewhere? |
Possibly. I looked at Meat/Value.hs at the AppType section, but it looked the same on both ends. Will probably need good ol' debugging work |
Ha, yeah, glad to have changed your mind. I don't think I actually caught your name at the time, and only realised who you were a few days later when something about |
Yes, ZuriHac needs bigger name badges 😆 |
If it helps, this only happens when using quoted constructors - e.g., |
I found out putting a ticked type inside of parenthesis makes parser happy again. -- Unhappy parser
id @'Int
-- Happy parser
id @('Int) It's quite annoying workaround for |
Is this still being worked on? |
No one's working on it yet. Feel free to open a PR |
Looks like a bad merge 😢 Ormolu fixed this back in 0.1.4.0: tweag/ormolu@286afb7#diff-88777f1040ac8f0f2e2903f2db73e3604774239dff0453bc9fcb68c6ceab1f66 I merged this into Fourmolu as one of my first contributions, and this was before Fourmolu was systematically merging Ormolu changes in, so it was a huge change that I probably overlooked this conflict. I'll make the change (and add a regression test cuz why not) |
Thank you for the fix! Can I know when this bugfix will be released? |
I'm hoping to get #245 merged in for the next release, so maybe in the next week or so? |
Released v0.9.0.0 |
Awesome! |
The following
Gets reformatted to
I can't reproduce this on https://ormolu-live.tweag.io/, so think it might be a Fourmolu specific bug.
The text was updated successfully, but these errors were encountered: