Skip to content

Commit

Permalink
Don't use DelayForceChar as syntax style for blah.default()
Browse files Browse the repository at this point in the history
  • Loading branch information
pchiusano committed Jul 9, 2024
1 parent 60bb91a commit 2c1a048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser-typechecker/src/Unison/Syntax/TermPrinter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ pretty0
(App' x (Constructor' (ConstructorReference DD.UnitRef 0)), _) | isLeaf x -> do
px <- pretty0 (ac (if isBlock x then 0 else 9) Normal im doc) x
pure . paren (p >= 11 || isBlock x && p >= 3) $
px <> fmt S.DelayForceChar (l "()")
px <> fmt S.Unit (l "()")
(Apps' f (unsnoc -> Just (args, lastArg)), _)
| isSoftHangable lastArg -> do
fun <- goNormal 9 f
Expand Down

0 comments on commit 2c1a048

Please sign in to comment.