1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Lower the precedence in lambda bodies.

This commit is contained in:
Rob Rix 2019-07-23 15:20:20 -04:00
parent 8e5c2163b8
commit 4bd2129511
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -55,7 +55,7 @@ prettyCore style = precBody . go . fmap name
]
Lam (Named (Ignored x) b) -> prec 3 . group . nest 2 $ vsep
[ lambda <> name x, arrow <+> withPrec 3 (go (instantiate1 (pure (name x)) b)) ]
[ lambda <> name x, arrow <+> withPrec 0 (go (instantiate1 (pure (name x)) b)) ]
Record fs -> atom . group . nest 2 $ vsep [ primitive "record", block ", " (map (uncurry keyValue) fs) ]