Minor Changes
-
#2378
0dd62a7
Thanks @IMax153! - Removes theRender
module and consolidatesDoc
rendering methodsThis PR removes the
Render
module and consolidates all document rendering methods into a single method.Before:
import * as Doc from "@effect/printer/Doc"; import * as Render from "@effect/printer/Render"; const doc = Doc.cat(Doc.text("Hello, "), Doc.text("World!")); console.log(Render.prettyDefault(doc));
After:
import * as Doc from "@effect/printer/Doc"; const doc = Doc.cat(Doc.text("Hello, "), Doc.text("World!")); console.log(Doc.render(doc, { style: "pretty" }));