Skip to content

Commit cca7c0b

Browse files
committed
Remove bad handling of expr bodies
1 parent f5306dd commit cca7c0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Language/C/Pretty.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ instance Pretty CStat where
142142
$+$ prettyBody stat
143143
$$ maybeP prettyElse estat
144144
where
145-
prettyBody c@(CCompound _ _ _) = prettyPrec (-1) c
146-
prettyBody nonCompound = prettyPrec (-1) (CCompound [] [CBlockStmt nonCompound] undefined)
145+
prettyBody c = prettyPrec (-1) c
146+
-- prettyBody nonCompound = prettyPrec (-1) (CCompound [] [CBlockStmt nonCompound] undefined)
147147
prettyElse (CIf else_if_expr else_if_stat else_stat _) =
148148
text "else if"
149149
<+> parens (pretty else_if_expr)

0 commit comments

Comments
 (0)