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

Print the bodies of abstractions.

This commit is contained in:
Rob Rix 2015-09-22 17:35:41 -04:00
parent 8b6e1c1c08
commit 0c5c3910f6

View File

@ -114,7 +114,7 @@ public enum Syntax<Payload>: CustomDebugStringConvertible, CustomDocConvertible
.Text("λ"),
.Join(.Text(", "), parameters.map(Doc.init)),
.Text("."),
Doc(body)
.Vertical(body.map(Doc.init))
])
case let .Assign(n, v):
return .Horizontal([ .Text(n), .Text("="), Doc(v) ])