Package: @effect/printer
Module: Doc
Adds an annotation to a Doc. The annotation can then be used by the rendering
algorithm to, for example, add color to certain parts of the output.
Note This function is relevant only for custom formats with their own annotations, and is not relevant for basic pretty printing.
Signature
declare const annotate: { <A>(annotation: A): (self: Doc<A>) => Doc<A>; <A>(self: Doc<A>, annotation: A): Doc<A>; }
Since v1.0.0