MCPcopy Index your code
hub / github.com/Effect-TS/effect / unbounded

Function unbounded

packages/printer/src/internal/layout.ts:407–412  ·  view source on GitHub ↗
(self: Doc.Doc<A>)

Source from the content-addressed store, hash-verified

405
406/** @internal */
407export const unbounded = <A>(self: Doc.Doc<A>): DocStream.DocStream<A> =>
408 wadlerLeijen(
409 self,
410 (stream) => !failsOnFirstLine(stream),
411 { pageWidth: InternalPageWidth.unbounded }
412 )
413
414const failsOnFirstLine = <A>(self: DocStream.DocStream<A>): boolean => {
415 let stream = self

Callers 1

layout.tsFile · 0.70

Calls 1

failsOnFirstLineFunction · 0.85

Tested by

no test coverage detected