Fixup annotation on error-fallback

Lennart Spitzner 2023-04-17 09:06:56 +00:00
parent 73656eeff6
commit 7d4d6e77f7
1 changed files with 3 additions and 1 deletions

View File

@ -224,7 +224,9 @@ ppToplevelDecl decl immediateAfterComms = do
_ -> layoutDecl decl _ -> layoutDecl decl
(r, errorCount) <- briDocMToPPM (r, errorCount) <- briDocMToPPM
$ docSeq (innerDoc : map commentToDoc immediateAfterComms) $ docSeq (innerDoc : map commentToDoc immediateAfterComms)
if errorCount == 0 then pure (r, 0) else briDocMToPPM $ briDocByExact decl if errorCount == 0
then pure (r, 0)
else briDocMToPPM $ briDocByExactNoComment decl
ppBriDoc bd False ppBriDoc bd False
let commCntIn = connectedCommentCount decl let commCntIn = connectedCommentCount decl
commCntOut <- mGet commCntOut <- mGet