@@ -9,6 +9,7 @@ module Ormolu.Diff
99 )
1010where
1111
12+import BasicTypes (SourceText)
1213import Data.Generics
1314import GHC
1415import Ormolu.CommentStream
@@ -33,7 +34,10 @@ matchIgnoringSrcSpans = genericQuery
3334 where
3435 genericQuery :: GenericQ (GenericQ Bool)
3536 genericQuery x y = (toConstr x == toConstr y)
36− && and (gzipWithQ (genericQuery `extQ` srcSpanEq `extQ` hsModuleEq) x y)
37+ && and (gzipWithQ (genericQuery
38+ `extQ` srcSpanEq
39+ `extQ` hsModuleEq
40+ `extQ` sourceTextEq) x y)
3741
3842 srcSpanEq :: SrcSpan -> GenericQ Bool
3943 srcSpanEq _ _ = True
@@ -46,3 +50,6 @@ matchIgnoringSrcSpans = genericQuery
4650 matchIgnoringSrcSpans
4751 hs0 { hsmodImports = sortImports (hsmodImports hs0) }
4852 hs1 { hsmodImports = sortImports (hsmodImports hs1) }
53+
54+ sourceTextEq :: SourceText -> GenericQ Bool
55+ sourceTextEq _ _ = True