Skip to content

Commit 383313e

Browse files
amesgenmrkkrp
authored andcommitted
Fix false positives in AST diffing with implicit fixities
1 parent 2db4b1f commit 383313e

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
string represented by a string literal. [Issue
55
1160](https://github.com/tweag/ormolu/issues/1160).
66

7+
* Fix false positives in AST diffing in fixity declarations with implicit
8+
fixity, such as `infix +`. [Issue
9+
1166](https://github.com/tweag/ormolu/issues/1166).
10+
711
## Ormolu 0.8.0.0
812

913
* Format multiple files in parallel. [Issue

data/examples/declaration/signature/fixity/infix-out.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ infix 9 <^-^>
55
infix 2 ->
66

77
infix 0 type <!>
8+
9+
infix 9 +

data/examples/declaration/signature/fixity/infix.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ infix 9 <^-^>
44
infix 2 ->
55

66
infix 0 type <!>
7+
8+
infix +

src/Ormolu/Diff/ParseResult.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ diffHsModule = genericQuery
9494
`extQ` considerEqual @SourceText
9595
`extQ` considerEqual @EpAnnComments -- ~ XCGRHSs GhcPs
9696
`extQ` considerEqual @EpaLocation
97+
`extQ` considerEqual @(Maybe EpaLocation)
9798
`extQ` considerEqual @EpLayout
9899
`extQ` considerEqual @AnnSig
99100
`extQ` considerEqual @HsRuleAnn

0 commit comments

Comments
 (0)