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

[ghc-9.2] Fix rename plugin #2593

Merged
merged 5 commits into from
Jan 16, 2022
Merged

[ghc-9.2] Fix rename plugin #2593

merged 5 commits into from
Jan 16, 2022

Conversation

pepeiborra
Copy link
Collaborator

@pepeiborra pepeiborra commented Jan 15, 2022

The rename plugin relies on SYB to find located AST trees that need renaming. This breaks in GHC 9.2 because the representation of located AST trees has changed: it now includes exactprint annotations.

To make the rename plugin work in 9.2, we need to adjust the SYB queries to look for the new located AST types.

@pepeiborra pepeiborra marked this pull request as ready for review January 16, 2022 18:06
Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, one more plugin for ghc-9.2.1, yay!

@jneira jneira added the merge me Label to trigger pull request merge label Jan 16, 2022
@mergify mergify bot merged commit 87fb2e0 into master Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants