Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit d9ea6e7

Browse files
committed
Correct the precedences of pretty-printing for :. and :=.
1 parent 36827bb commit d9ea6e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

semantic-core/src/Data/Core/Pretty.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ prettify style = \case
9494
Load (Const p) -> "load" `appending` p
9595
Edge Lexical (Const n) -> "lexical" `appending` n
9696
Edge Import (Const n) -> "import" `appending` n
97-
Const item :. Const body -> inParens 5 $ do
97+
Const item :. Const body -> inParens 4 $ do
9898
f <- item
9999
g <- body
100100
pure (f <> symbol "." <> g)
101101

102-
Const lhs := Const rhs -> inParens 4 $ do
102+
Const lhs := Const rhs -> inParens 3 $ do
103103
f <- lhs
104104
g <- rhs
105105
pure (f <+> symbol "=" <+> g)

0 commit comments

Comments
 (0)