Fix missing comment for MG

ghc92
Lennart Spitzner 2023-03-19 18:15:47 +00:00
parent 83b13d61a0
commit 5bee3fa93d
1 changed files with 3 additions and 1 deletions

View File

@ -494,7 +494,7 @@ layoutExpr lexpr@(L _ expr) = do
)
(docLit $ Text.pack "of {}")
]
HsCase epAnn cExp (MG _ _lmatches@(L _ matches) _) -> docHandleComms epAnn $ do
HsCase epAnn cExp (MG _ lmatches@(L _ matches) _) -> docHandleComms epAnn $ do
cExpDoc <- shareDoc $ layoutExpr cExp
binderDoc <- docLit $ Text.pack "->"
funcPatDocs <-
@ -511,6 +511,7 @@ layoutExpr lexpr@(L _ expr) = do
)
(docSetBaseAndIndent
$ docNonBottomSpacing
$ docHandleComms lmatches
$ docLines
$ return
<$> funcPatDocs
@ -523,6 +524,7 @@ layoutExpr lexpr@(L _ expr) = do
(docLit $ Text.pack "of")
(docSetBaseAndIndent
$ docNonBottomSpacing
$ docHandleComms lmatches
$ docLines
$ return
<$> funcPatDocs