You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line based docs can be lifted into the box type (in dodo this is done through a printer interface).
Vertical composition is straightforward (concatenation through line breaks)
Horizontal composition scans one line at a time, appending columns.
It also has stuff for box alignment (like align-self in CSS) and padding, and omits trailing line alignment. This is kind of ridiculously complicated in PureScript because of stack safety and efficiency, but can be done straightforwardly in Haskell (depending on how you'd scan lines).
Edit: I should also say it assumes distributivity of annotations, which works well for things like ansi colors, but doesn't necessarily work for everything.
I have a doc that currently pretty prints as
but would instead like to produce
aligning on both the
:
and the(not in scope)
. Is this possible? I can't figure out how to getalign
to do this.The text was updated successfully, but these errors were encountered: