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.12 delta ast #139

Merged
merged 9 commits into from
Jan 21, 2025
Merged

Ghc 9.12 delta ast #139

merged 9 commits into from
Jan 21, 2025

Conversation

alanz
Copy link
Owner

@alanz alanz commented Jan 20, 2025

Harmonise calculation of delta offsets for top level and embedded offsets.

Nested structures not at the top level end up with
DifferentLine column offsets that are different from
the top level ones, because the top level offset was incorrect.

It does break some low-level transform tests though
tests/Test/Transform.hs:88
AddLocalDecl5.hs
tests/Test/Transform.hs:88
RmDecl4.hs
Cases: 3518  Tried: 3518  Errors: 0  Failures: 2
Both legs of the condition did the same thing, keep one of those only
And the problem has to do with the indent after the new where clause.
It works fine for no comment.  The LayoutOffset is being used, where
it should not
@alanz alanz merged commit 07a6879 into master Jan 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant