Skip to content

Commit

Permalink
Add parens around pretty printing of application
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Oct 7, 2023
1 parent 62a4558 commit b337583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Idrall/Pretty.idr
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ mutual
Pretty a => Pretty (Expr a) where
pretty (EConst fc x) = pretty x
pretty (EVar fc x n) = pretty x <+> pretty "@" <+> pretty n
pretty (EApp fc x y) = pretty x <++> pretty y
pretty (EApp fc x y) = pretty x <++> parens (pretty y)
pretty (ELam fc n x y) =
pretty "\\" <+> parens (pretty n <++> colon <++> pretty x)
<++> pretty "->" <++> pretty y
Expand Down

0 comments on commit b337583

Please sign in to comment.