I would like to do: ``` def foo = bar ``` if it fits, otherwise do: ``` def foo = { bar } ``` Is this possible? Seems like I need `FlatAlt("{" +: Doc.hardLine, doc)` but there is no way to create a custom `FlatAlt`.
I would like to do:
if it fits, otherwise do:
Is this possible?
Seems like I need
FlatAlt("{" +: Doc.hardLine, doc)but there is no way to create a customFlatAlt.