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

single-constraint-parens breaks AST equality in case of QuantifiedConstraints #340

Closed
1 of 2 tasks
paolino opened this issue Jun 29, 2023 · 0 comments · Fixed by #342
Closed
1 of 2 tasks

single-constraint-parens breaks AST equality in case of QuantifiedConstraints #340

paolino opened this issue Jun 29, 2023 · 0 comments · Fixed by #342
Labels
bug Something isn't working

Comments

@paolino
Copy link

paolino commented Jun 29, 2023

  • No, I've not verified that Ormolu does not have this bug, it shouldn't as Ormoulu doesn't remove parens.
  • I've verified that https://fourmolu.github.io can reproduce this bug

Formatting this code remove parenthesis when single-constraint-parens: never is set report an AST incoherence.

instance (forall a. Show a => Show (f a)) => Show (C f a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant