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:
parent
8e5c2163b8
commit
4bd2129511
@ -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) ]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user