Package-level declarations
Types
One of the 8 basic colors supported by the ANSI standard.
An ANSI 4-bit color.
Bright variant of baseColor.
The default foreground or background color.
The default Style.
Represents a pretty printed document.
Normal variant of baseColor.
An object that has a pretty text representation.
Functions
Like joined but using commas as separators and enclosed in /*
and */
.
Concatenates all the elements together with separators in between.
Convenience method. See plus.
Tries laying out this document into a single line by removing the contained Document.lineBreaks (and replacing them with spaces); if this does not fit the page, the document is laid out without any changes. This function is the key to layouts that adapt to available space nicely.
Returns a new document that is this with the nesting level (indentation after newlines) increased by indentationChange. Negative values for indentationChange are allowed, and decrease the nesting level accordingly.
Convenience method. See plus.