@@ -902,7 +902,8 @@ liftAppend (x : xs) [] = x : xs
902liftAppend (x : xs) (y : ys) = x <> y : liftAppend xs ys
902liftAppend (x : xs) (y : ys) = x <> y : liftAppend xs ys
904getGRHSSpan :: GRHS GhcPs (Located body) -> SrcSpan
904getGRHSSpan :: GRHS GhcPs (Located body) -> SrcSpan
905−getGRHSSpan (GRHS NoExt _ body) = getLoc body
905+getGRHSSpan (GRHS NoExt guards body) =
906+ combineSrcSpans' $ getLoc body :| map getLoc guards
906getGRHSSpan (XGRHS NoExt) = notImplemented "XGRHS"
907getGRHSSpan (XGRHS NoExt) = notImplemented "XGRHS"
908-- | Place a thing that may have a hanging form. This function handles how
909-- | Place a thing that may have a hanging form. This function handles how