Skip to content

Conversation

@amesgen
Copy link
Member

@amesgen amesgen commented May 8, 2025

Closes #1166

The problem is that formatting infix + to infix 9 + changes the exact print annotations, namely in

XFixSig ~ ((EpaLocation, Maybe EpaLocation), SourceText)

the Maybe EpaLocation (indicating the position of the number, if present) changes from Nothing to Just. The fix is simply to ignore this difference.

An alternative would be to preserve the input choice of whether the fixity is implicit, but I like the current behavior as it provides more consistency and explicitness.

@github-actions
Copy link

github-actions bot commented May 8, 2025

@github-actions github-actions bot temporarily deployed to pull request May 8, 2025 08:47 Inactive
@mrkkrp mrkkrp merged commit 383313e into master May 12, 2025
8 checks passed
@amesgen amesgen deleted the amesgen/issue-1166 branch May 12, 2025 08:43
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.

False positives in AST diffing of infix + (implicit fixity)

3 participants