fix some parenthesisation

This commit is contained in:
rhiannon morris 2023-11-06 22:11:11 +01:00
parent 50984aa1aa
commit cc78ccd940

View file

@ -431,7 +431,7 @@ prettyTerm dnames tnames (Eq (S _ (N ty)) l r _) =
pure $ sep [l <++> !eqndD, r <++> !colonD, ty]
prettyTerm dnames tnames (Eq ty l r _) =
parensIfM Arg =<< do
parensIfM App =<< do
ty <- prettyTypeLine dnames tnames ty
l <- withPrec Arg $ prettyTerm dnames tnames l
r <- withPrec Arg $ prettyTerm dnames tnames r
@ -443,6 +443,7 @@ prettyTerm dnames tnames s@(DLam {}) =
prettyTerm dnames tnames (NAT _) = natD
prettyTerm dnames tnames (Nat n _) = hl Syntax $ pshow n
prettyTerm dnames tnames (Succ p _) =
parensIfM App =<<
prettyAppD !succD [!(withPrec Arg $ prettyTerm dnames tnames p)]
prettyTerm dnames tnames (STRING _) = stringD