mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Add spaces inside records’ braces.
This commit is contained in:
parent
77acb91a7f
commit
f1c4d8a1c5
@ -90,7 +90,7 @@ prettyCore style = run . runReader @Prec 0 . go
|
||||
|
||||
Record fs -> do
|
||||
fs' <- for fs $ \ (x, v) -> (name x <+> symbol "=" <+>) <$> go v
|
||||
pure $ primitive "record" <+> encloseSep lbrace rbrace semi fs'
|
||||
pure $ primitive "record" <+> encloseSep "{ " " }" semi fs'
|
||||
|
||||
Unit -> pure $ primitive "unit"
|
||||
Bool b -> pure $ primitive (if b then "true" else "false")
|
||||
|
Loading…
Reference in New Issue
Block a user