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

Reformatting with parentheses around list of derived instances results in "AST mismatch" #37

Closed
mrkkrp opened this issue May 8, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@mrkkrp
Copy link
Member

mrkkrp commented May 8, 2019

Obviously it's because AST in GHC is a total mess. Anyway, we need to fix this:

data Foo = Foo deriving Bar

Currently this example results in an error. If Bar is inside of parentheses in original input, it all works. The solution would be perhaps to preserve absence of parentheses in that case.

Low priority for now.

@mrkkrp mrkkrp added the bug Something isn't working label May 8, 2019
@mrkkrp
Copy link
Member Author

mrkkrp commented Jun 2, 2019

This has been resolved as a side effect of switching to GHC 8.6.4 in #58. Closing.

@mrkkrp mrkkrp closed this as completed Jun 2, 2019
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

No branches or pull requests

1 participant