From a339c9fd3f16642c0aca3067380a71329ae9e1ba Mon Sep 17 00:00:00 2001 From: Alan Zimmerman Date: Sun, 7 Apr 2024 20:04:43 +0100 Subject: [PATCH] Fix transform and balanceComments tests --- src/Language/Haskell/GHC/ExactPrint/Transform.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Language/Haskell/GHC/ExactPrint/Transform.hs b/src/Language/Haskell/GHC/ExactPrint/Transform.hs index 9e50746b..8cfbbd7a 100644 --- a/src/Language/Haskell/GHC/ExactPrint/Transform.hs +++ b/src/Language/Haskell/GHC/ExactPrint/Transform.hs @@ -580,7 +580,7 @@ trailingCommentsDeltas r (la@(L l _):las) -- AZ:TODO: this is identical to commentsDeltas priorCommentsDeltas :: RealSrcSpan -> [LEpaComment] -> [(Int, LEpaComment)] -priorCommentsDeltas r cs = go r (reverse $ sortEpaComments cs) +priorCommentsDeltas r cs = go r (sortEpaComments cs) where go :: RealSrcSpan -> [LEpaComment] -> [(Int, LEpaComment)] go _ [] = []