Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@effect/printer

Package Overview
Dependencies
Maintainers
3
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/printer - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

24

internal_effect_untraced/doc.js

@@ -418,9 +418,9 @@ "use strict";

case "Cat":
return Effect.zipWith(Effect.suspendSucceed(() => flattenSafe(self.left)), Effect.suspendSucceed(() => flattenSafe(self.right)), (left, right) => cat(left, right));
return Effect.zipWith(Effect.suspend(() => flattenSafe(self.left)), Effect.suspend(() => flattenSafe(self.right)), (left, right) => cat(left, right));
case "FlatAlt":
return Effect.suspendSucceed(() => flattenSafe(self.right));
return Effect.suspend(() => flattenSafe(self.right));
case "Union":
return Effect.suspendSucceed(() => flattenSafe(self.left));
return Effect.suspend(() => flattenSafe(self.left));
case "Nest":
return Effect.map(Effect.suspendSucceed(() => flattenSafe(self.doc)), nest(self.indent));
return Effect.map(Effect.suspend(() => flattenSafe(self.doc)), nest(self.indent));
case "Column":

@@ -433,3 +433,3 @@ return Effect.succeed(column(position => Effect.runSync(flattenSafe(self.react(position)))));

case "Annotated":
return Effect.map(Effect.suspendSucceed(() => flattenSafe(self.doc)), annotate(self.annotation));
return Effect.map(Effect.suspend(() => flattenSafe(self.doc)), annotate(self.annotation));
default:

@@ -458,3 +458,3 @@ return Effect.succeed(self);

{
return Effect.zipWith(Effect.suspendSucceed(() => changesUponFlatteningSafe(self.left)), Effect.suspendSucceed(() => changesUponFlatteningSafe(self.right)), (left, right) => {
return Effect.zipWith(Effect.suspend(() => changesUponFlatteningSafe(self.left)), Effect.suspend(() => changesUponFlatteningSafe(self.right)), (left, right) => {
if (_flatten.isNeverFlat(left) || _flatten.isNeverFlat(right)) {

@@ -480,3 +480,3 @@ return _flatten.neverFlat;

{
return Effect.map(Effect.suspendSucceed(() => changesUponFlatteningSafe(self.doc)), _flatten.map(nest(self.indent)));
return Effect.map(Effect.suspend(() => changesUponFlatteningSafe(self.doc)), _flatten.map(nest(self.indent)));
}

@@ -501,3 +501,3 @@ case "Union":

{
return Effect.map(Effect.suspendSucceed(() => changesUponFlatteningSafe(self.doc)), _flatten.map(annotate(self.annotation)));
return Effect.map(Effect.suspend(() => changesUponFlatteningSafe(self.doc)), _flatten.map(annotate(self.annotation)));
}

@@ -529,15 +529,15 @@ default:

{
return Effect.zipWith(Effect.suspendSucceed(() => alterAnnotationsSafe(self.left, f)), alterAnnotationsSafe(self.right, f), (left, right) => cat(left, right));
return Effect.zipWith(Effect.suspend(() => alterAnnotationsSafe(self.left, f)), alterAnnotationsSafe(self.right, f), (left, right) => cat(left, right));
}
case "FlatAlt":
{
return Effect.zipWith(Effect.suspendSucceed(() => alterAnnotationsSafe(self.left, f)), alterAnnotationsSafe(self.right, f), (left, right) => flatAlt(left, right));
return Effect.zipWith(Effect.suspend(() => alterAnnotationsSafe(self.left, f)), alterAnnotationsSafe(self.right, f), (left, right) => flatAlt(left, right));
}
case "Union":
{
return Effect.zipWith(Effect.suspendSucceed(() => alterAnnotationsSafe(self.left, f)), alterAnnotationsSafe(self.right, f), (left, right) => union(left, right));
return Effect.zipWith(Effect.suspend(() => alterAnnotationsSafe(self.left, f)), alterAnnotationsSafe(self.right, f), (left, right) => union(left, right));
}
case "Nest":
{
return Effect.map(Effect.suspendSucceed(() => alterAnnotationsSafe(self.doc, f)), nest(self.indent));
return Effect.map(Effect.suspend(() => alterAnnotationsSafe(self.doc, f)), nest(self.indent));
}

@@ -544,0 +544,0 @@ case "Column":

@@ -38,3 +38,3 @@ "use strict";

LineStream: (self, that) => isDocStream(that) && that._tag === "LineStream" && Equal.equals(self.stream, that.stream),
PUshAnnotationStream: (self, that) => isDocStream(that) && that._tag === "PushAnnotationStream" && Equal.equals(self.annotation, that.annotation) && Equal.equals(self.stream, that.stream),
PushAnnotationStream: (self, that) => isDocStream(that) && that._tag === "PushAnnotationStream" && Equal.equals(self.annotation, that.annotation) && Equal.equals(self.stream, that.stream),
PopAnnotationStream: (self, that) => isDocStream(that) && that._tag === "PopAnnotationStream" && Equal.equals(self.stream, that.stream)

@@ -150,11 +150,11 @@ };

{
return Effect.map(Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, stack)), char(self.char));
return Effect.map(Effect.suspend(() => alterAnnotationSafe(self.stream, f, stack)), char(self.char));
}
case "TextStream":
{
return Effect.map(Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, stack)), text(self.text));
return Effect.map(Effect.suspend(() => alterAnnotationSafe(self.stream, f, stack)), text(self.text));
}
case "LineStream":
{
return Effect.map(Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, stack)), line(self.indentation));
return Effect.map(Effect.suspend(() => alterAnnotationSafe(self.stream, f, stack)), line(self.indentation));
}

@@ -165,5 +165,5 @@ case "PushAnnotationStream":

if (Option.isSome(altered)) {
return Effect.map(Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, List.prepend(stack, DontRemove))), pushAnnotation(altered.value));
return Effect.map(Effect.suspend(() => alterAnnotationSafe(self.stream, f, List.prepend(stack, DontRemove))), pushAnnotation(altered.value));
}
return Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, List.prepend(stack, Remove)));
return Effect.suspend(() => alterAnnotationSafe(self.stream, f, List.prepend(stack, Remove)));
}

@@ -176,5 +176,5 @@ case "PopAnnotationStream":

if (stack.head === DontRemove) {
return Effect.map(Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, stack.tail)), popAnnotation);
return Effect.map(Effect.suspend(() => alterAnnotationSafe(self.stream, f, stack.tail)), popAnnotation);
}
return Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, stack.tail));
return Effect.suspend(() => alterAnnotationSafe(self.stream, f, stack.tail));
}

@@ -194,19 +194,19 @@ default:

{
return Effect.map(Effect.suspendSucceed(() => reAnnotateSafe(self.stream, f)), char(self.char));
return Effect.map(Effect.suspend(() => reAnnotateSafe(self.stream, f)), char(self.char));
}
case "TextStream":
{
return Effect.map(Effect.suspendSucceed(() => reAnnotateSafe(self.stream, f)), text(self.text));
return Effect.map(Effect.suspend(() => reAnnotateSafe(self.stream, f)), text(self.text));
}
case "LineStream":
{
return Effect.map(Effect.suspendSucceed(() => reAnnotateSafe(self.stream, f)), line(self.indentation));
return Effect.map(Effect.suspend(() => reAnnotateSafe(self.stream, f)), line(self.indentation));
}
case "PushAnnotationStream":
{
return Effect.map(Effect.suspendSucceed(() => reAnnotateSafe(self.stream, f)), pushAnnotation(f(self.annotation)));
return Effect.map(Effect.suspend(() => reAnnotateSafe(self.stream, f)), pushAnnotation(f(self.annotation)));
}
case "PopAnnotationStream":
{
return Effect.suspendSucceed(() => reAnnotateSafe(self.stream, f));
return Effect.suspend(() => reAnnotateSafe(self.stream, f));
}

@@ -226,11 +226,11 @@ default:

{
return Effect.map(Effect.suspendSucceed(() => unAnnotateSafe(self.stream)), char(self.char));
return Effect.map(Effect.suspend(() => unAnnotateSafe(self.stream)), char(self.char));
}
case "TextStream":
{
return Effect.map(Effect.suspendSucceed(() => unAnnotateSafe(self.stream)), text(self.text));
return Effect.map(Effect.suspend(() => unAnnotateSafe(self.stream)), text(self.text));
}
case "LineStream":
{
return Effect.map(Effect.suspendSucceed(() => unAnnotateSafe(self.stream)), line(self.indentation));
return Effect.map(Effect.suspend(() => unAnnotateSafe(self.stream)), line(self.indentation));
}

@@ -240,3 +240,3 @@ case "PushAnnotationStream":

{
return Effect.suspendSucceed(() => unAnnotateSafe(self.stream));
return Effect.suspend(() => unAnnotateSafe(self.stream));
}

@@ -259,19 +259,19 @@ default:

{
return Effect.suspendSucceed(() => foldMapSafe(self.stream, M, f));
return Effect.suspend(() => foldMapSafe(self.stream, M, f));
}
case "TextStream":
{
return Effect.suspendSucceed(() => foldMapSafe(self.stream, M, f));
return Effect.suspend(() => foldMapSafe(self.stream, M, f));
}
case "LineStream":
{
return Effect.suspendSucceed(() => foldMapSafe(self.stream, M, f));
return Effect.suspend(() => foldMapSafe(self.stream, M, f));
}
case "PushAnnotationStream":
{
return Effect.map(Effect.suspendSucceed(() => foldMapSafe(self.stream, M, f)), that => M.combine(f(self.annotation), that));
return Effect.map(Effect.suspend(() => foldMapSafe(self.stream, M, f)), that => M.combine(f(self.annotation), that));
}
case "PopAnnotationStream":
{
return Effect.suspendSucceed(() => foldMapSafe(self.stream, M, f));
return Effect.suspend(() => foldMapSafe(self.stream, M, f));
}

@@ -278,0 +278,0 @@ default:

@@ -153,3 +153,3 @@ "use strict";

{
return Chunk.reduceRight(Chunk.fromIterable(f(self.annotation)), Effect.suspendSucceed(() => alterAnnotationsSafe(self.tree, f)), (acc, b) => Effect.map(acc, annotation(b)));
return Chunk.reduceRight(Chunk.fromIterable(f(self.annotation)), Effect.suspend(() => alterAnnotationsSafe(self.tree, f)), (acc, b) => Effect.map(acc, annotation(b)));
}

@@ -185,3 +185,3 @@ case "ConcatTree":

{
return Effect.map(Effect.suspendSucceed(() => foldMapSafe(self.tree, M, f)), that => M.combine(f(self.annotation), that));
return Effect.map(Effect.suspend(() => foldMapSafe(self.tree, M, f)), that => M.combine(f(self.annotation), that));
}

@@ -227,3 +227,3 @@ case "ConcatTree":

{
return Effect.map(Effect.suspendSucceed(() => renderSimplyDecoratedSafe(self.tree, M, renderText, renderAnnotation)), out => renderAnnotation(self.annotation, out));
return Effect.map(Effect.suspend(() => renderSimplyDecoratedSafe(self.tree, M, renderText, renderAnnotation)), out => renderAnnotation(self.annotation, out));
}

@@ -237,3 +237,3 @@ case "ConcatTree":

const tail = Chunk.drop(self.trees, 1);
return Chunk.reduce(tail, Effect.suspendSucceed(() => renderSimplyDecoratedSafe(head, M, renderText, renderAnnotation)), (acc, tree) => Effect.zipWith(acc, Effect.suspendSucceed(() => renderSimplyDecoratedSafe(tree, M, renderText, renderAnnotation)), M.combine));
return Chunk.reduce(tail, Effect.suspend(() => renderSimplyDecoratedSafe(head, M, renderText, renderAnnotation)), (acc, tree) => Effect.zipWith(acc, Effect.suspend(() => renderSimplyDecoratedSafe(tree, M, renderText, renderAnnotation)), M.combine));
}

@@ -240,0 +240,0 @@ }

@@ -46,3 +46,3 @@ "use strict";

{
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, x.pipeline, fits, options));
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, x.pipeline, fits, options));
}

@@ -52,3 +52,3 @@ case "Char":

const char = x.document.char;
return Effect.map(Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc + 1, x.pipeline, fits, options)), docStream.char(char));
return Effect.map(Effect.suspend(() => wadlerLeijenSafe(nl, cc + 1, x.pipeline, fits, options)), docStream.char(char));
}

@@ -58,7 +58,7 @@ case "Text":

const text = x.document.text;
return Effect.map(Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc + text.length, x.pipeline, fits, options)), docStream.text(text));
return Effect.map(Effect.suspend(() => wadlerLeijenSafe(nl, cc + text.length, x.pipeline, fits, options)), docStream.text(text));
}
case "Line":
{
return Effect.map(Effect.suspendSucceed(() => wadlerLeijenSafe(x.indent, x.indent, x.pipeline, fits, options)), stream => docStream.line(stream, docStream.isEmptyStream(stream) || docStream.isLineStream(stream) ? 0 : x.indent));
return Effect.map(Effect.suspend(() => wadlerLeijenSafe(x.indent, x.indent, x.pipeline, fits, options)), stream => docStream.line(stream, docStream.isEmptyStream(stream) || docStream.isLineStream(stream) ? 0 : x.indent));
}

@@ -68,3 +68,3 @@ case "FlatAlt":

const layoutPipeline = pipeline.cons(x.indent, x.document.left, x.pipeline);
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options));
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options));
}

@@ -75,3 +75,3 @@ case "Cat":

const outer = pipeline.cons(x.indent, x.document.left, inner);
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, outer, fits, options));
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, outer, fits, options));
}

@@ -82,3 +82,3 @@ case "Nest":

const layoutPipeline = pipeline.cons(indent, x.document.doc, x.pipeline);
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options));
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options));
}

@@ -89,3 +89,3 @@ case "Union":

const rightPipeline = pipeline.cons(x.indent, x.document.right, x.pipeline);
return Effect.zipWith(Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, leftPipeline, fits, options)), wadlerLeijenSafe(nl, cc, rightPipeline, fits, options), (left, right) => selectNicer(fits, nl, cc, left, right));
return Effect.zipWith(Effect.suspend(() => wadlerLeijenSafe(nl, cc, leftPipeline, fits, options)), wadlerLeijenSafe(nl, cc, rightPipeline, fits, options), (left, right) => selectNicer(fits, nl, cc, left, right));
}

@@ -95,3 +95,3 @@ case "Column":

const layoutPipeline = pipeline.cons(x.indent, x.document.react(cc), x.pipeline);
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options));
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options));
}

@@ -101,3 +101,3 @@ case "WithPageWidth":

const layoutPipeline = pipeline.cons(x.indent, x.document.react(options.pageWidth), x.pipeline);
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options));
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options));
}

@@ -107,3 +107,3 @@ case "Nesting":

const layoutPipeline = pipeline.cons(x.indent, x.document.react(x.indent), x.pipeline);
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options));
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options));
}

@@ -114,3 +114,3 @@ case "Annotated":

const layoutPipeline = pipeline.cons(x.indent, x.document.doc, pipeline.undoAnnotation(x.pipeline));
return Effect.map(Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options)), stream => docStream.pushAnnotation(annotation)(stream));
return Effect.map(Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options)), stream => docStream.pushAnnotation(annotation)(stream));
}

@@ -120,3 +120,3 @@ }

case "UndoAnnotation":
return Effect.map(Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, x.pipeline, fits, options)), docStream.popAnnotation);
return Effect.map(Effect.suspend(() => wadlerLeijenSafe(nl, cc, x.pipeline, fits, options)), docStream.popAnnotation);
}

@@ -154,47 +154,47 @@ };

{
return Effect.suspendSucceed(() => compactSafe(tail, i));
return Effect.suspend(() => compactSafe(tail, i));
}
case "Char":
{
return Effect.map(Effect.suspendSucceed(() => compactSafe(tail, i + 1)), DocStream.char(head.char));
return Effect.map(Effect.suspend(() => compactSafe(tail, i + 1)), DocStream.char(head.char));
}
case "Text":
{
return Effect.map(Effect.suspendSucceed(() => compactSafe(tail, i + head.text.length)), DocStream.text(head.text));
return Effect.map(Effect.suspend(() => compactSafe(tail, i + head.text.length)), DocStream.text(head.text));
}
case "Line":
{
return Effect.map(Effect.suspendSucceed(() => compactSafe(tail, 0)), DocStream.line(0));
return Effect.map(Effect.suspend(() => compactSafe(tail, 0)), DocStream.line(0));
}
case "FlatAlt":
{
return Effect.suspendSucceed(() => compactSafe(List.cons(head.left, tail), i));
return Effect.suspend(() => compactSafe(List.cons(head.left, tail), i));
}
case "Cat":
{
return Effect.suspendSucceed(() => compactSafe(List.cons(head.left, List.cons(head.right, tail)), i));
return Effect.suspend(() => compactSafe(List.cons(head.left, List.cons(head.right, tail)), i));
}
case "Nest":
{
return Effect.suspendSucceed(() => compactSafe(List.cons(head.doc, tail), i));
return Effect.suspend(() => compactSafe(List.cons(head.doc, tail), i));
}
case "Union":
{
return Effect.suspendSucceed(() => compactSafe(List.cons(head.right, tail), i));
return Effect.suspend(() => compactSafe(List.cons(head.right, tail), i));
}
case "Column":
{
return Effect.suspendSucceed(() => compactSafe(List.cons(head.react(i), tail), i));
return Effect.suspend(() => compactSafe(List.cons(head.react(i), tail), i));
}
case "WithPageWidth":
{
return Effect.suspendSucceed(() => compactSafe(List.cons(head.react(pageWidth.unbounded), tail), i));
return Effect.suspend(() => compactSafe(List.cons(head.react(pageWidth.unbounded), tail), i));
}
case "Nesting":
{
return Effect.suspendSucceed(() => compactSafe(List.cons(head.react(0), tail), i));
return Effect.suspend(() => compactSafe(List.cons(head.react(0), tail), i));
}
case "Annotated":
{
return Effect.suspendSucceed(() => compactSafe(List.cons(head.doc, tail), i));
return Effect.suspend(() => compactSafe(List.cons(head.doc, tail), i));
}

@@ -201,0 +201,0 @@ }

@@ -19,3 +19,3 @@ "use strict";

{
return Effect.zipWith(Effect.suspendSucceed(() => optimizeSafe(self.left, depth)), Effect.suspendSucceed(() => optimizeSafe(self.right, depth)), (left, right) => _doc.flatAlt(left, right));
return Effect.zipWith(Effect.suspend(() => optimizeSafe(self.left, depth)), Effect.suspend(() => optimizeSafe(self.right, depth)), (left, right) => _doc.flatAlt(left, right));
}

@@ -26,6 +26,6 @@ case "Cat":

if (_doc.isEmpty(self.left)) {
return Effect.suspendSucceed(() => optimizeSafe(self.right, depth));
return Effect.suspend(() => optimizeSafe(self.right, depth));
}
if (_doc.isEmpty(self.right)) {
return Effect.suspendSucceed(() => optimizeSafe(self.left, depth));
return Effect.suspend(() => optimizeSafe(self.left, depth));
}

@@ -49,3 +49,3 @@ // String documents

const right = self.right.right;
return Effect.flatMap(Effect.suspendSucceed(() => optimizeSafe(_doc.cat(self.left, left), depth)), inner => optimizeSafe(_doc.cat(right, inner), depth));
return Effect.flatMap(Effect.suspend(() => optimizeSafe(_doc.cat(self.left, left), depth)), inner => optimizeSafe(_doc.cat(right, inner), depth));
}

@@ -55,3 +55,3 @@ if (_doc.isText(self.left) && _doc.isCat(self.right) && _doc.isChar(self.right.left)) {

const right = self.right.right;
return Effect.flatMap(Effect.suspendSucceed(() => optimizeSafe(_doc.cat(self.left, left), depth)), inner => optimizeSafe(_doc.cat(inner, right), depth));
return Effect.flatMap(Effect.suspend(() => optimizeSafe(_doc.cat(self.left, left), depth)), inner => optimizeSafe(_doc.cat(inner, right), depth));
}

@@ -61,3 +61,3 @@ if (_doc.isChar(self.left) && _doc.isCat(self.right) && _doc.isText(self.right.left)) {

const right = self.right.right;
return Effect.flatMap(Effect.suspendSucceed(() => optimizeSafe(_doc.cat(self.left, left), depth)), inner => optimizeSafe(_doc.cat(inner, right), depth));
return Effect.flatMap(Effect.suspend(() => optimizeSafe(_doc.cat(self.left, left), depth)), inner => optimizeSafe(_doc.cat(inner, right), depth));
}

@@ -67,3 +67,3 @@ if (_doc.isText(self.left) && _doc.isCat(self.right) && _doc.isText(self.right.left)) {

const right = self.right.right;
return Effect.flatMap(Effect.suspendSucceed(() => optimizeSafe(_doc.cat(self.left, left), depth)), inner => optimizeSafe(_doc.cat(inner, right), depth));
return Effect.flatMap(Effect.suspend(() => optimizeSafe(_doc.cat(self.left, left), depth)), inner => optimizeSafe(_doc.cat(inner, right), depth));
}

@@ -73,3 +73,3 @@ if (_doc.isCat(self.left) && _doc.isChar(self.left.right)) {

const right = self.left.right;
return Effect.flatMap(Effect.suspendSucceed(() => optimizeSafe(_doc.cat(right, self.right), depth)), inner => optimizeSafe(_doc.cat(left, inner), depth));
return Effect.flatMap(Effect.suspend(() => optimizeSafe(_doc.cat(right, self.right), depth)), inner => optimizeSafe(_doc.cat(left, inner), depth));
}

@@ -79,5 +79,5 @@ if (_doc.isCat(self.left) && _doc.isText(self.left.right)) {

const right = self.left.right;
return Effect.flatMap(Effect.suspendSucceed(() => optimizeSafe(_doc.cat(right, self.right), depth)), inner => optimizeSafe(_doc.cat(left, inner), depth));
return Effect.flatMap(Effect.suspend(() => optimizeSafe(_doc.cat(right, self.right), depth)), inner => optimizeSafe(_doc.cat(left, inner), depth));
}
return Effect.zipWith(Effect.suspendSucceed(() => optimizeSafe(self.left, depth)), Effect.suspendSucceed(() => optimizeSafe(self.right, depth)), (left, right) => _doc.cat(left, right));
return Effect.zipWith(Effect.suspend(() => optimizeSafe(self.left, depth)), Effect.suspend(() => optimizeSafe(self.right, depth)), (left, right) => _doc.cat(left, right));
}

@@ -97,12 +97,12 @@ case "Nest":

const doc = self.doc;
return Effect.suspendSucceed(() => optimizeSafe(_doc.nest(doc.doc, self.indent + doc.indent), depth));
return Effect.suspend(() => optimizeSafe(_doc.nest(doc.doc, self.indent + doc.indent), depth));
}
if (self.indent === 0) {
return Effect.suspendSucceed(() => optimizeSafe(self.doc, depth));
return Effect.suspend(() => optimizeSafe(self.doc, depth));
}
return Effect.map(Effect.suspendSucceed(() => optimizeSafe(self.doc, depth)), doc => _doc.nest(doc, self.indent));
return Effect.map(Effect.suspend(() => optimizeSafe(self.doc, depth)), doc => _doc.nest(doc, self.indent));
}
case "Union":
{
return Effect.zipWith(Effect.suspendSucceed(() => optimizeSafe(self.left, depth)), Effect.suspendSucceed(() => optimizeSafe(self.right, depth)), (left, right) => _doc.union(left, right));
return Effect.zipWith(Effect.suspend(() => optimizeSafe(self.left, depth)), Effect.suspend(() => optimizeSafe(self.right, depth)), (left, right) => _doc.union(left, right));
}

@@ -123,3 +123,3 @@ case "Column":

{
return Effect.map(Effect.suspendSucceed(() => optimizeSafe(self.doc, depth)), doc => _doc.annotate(doc, self.annotation));
return Effect.map(Effect.suspend(() => optimizeSafe(self.doc, depth)), doc => _doc.annotate(doc, self.annotation));
}

@@ -126,0 +126,0 @@ default:

@@ -31,7 +31,7 @@ "use strict";

{
return Effect.map(Effect.suspendSucceed(() => renderSafe(self.stream)), rest => self.char + rest);
return Effect.map(Effect.suspend(() => renderSafe(self.stream)), rest => self.char + rest);
}
case "TextStream":
{
return Effect.map(Effect.suspendSucceed(() => renderSafe(self.stream)), rest => self.text + rest);
return Effect.map(Effect.suspend(() => renderSafe(self.stream)), rest => self.text + rest);
}

@@ -44,3 +44,3 @@ case "LineStream":

}
return Effect.map(Effect.suspendSucceed(() => renderSafe(self.stream)), rest => indent + rest);
return Effect.map(Effect.suspend(() => renderSafe(self.stream)), rest => indent + rest);
}

@@ -50,3 +50,3 @@ case "PopAnnotationStream":

{
return Effect.suspendSucceed(() => renderSafe(self.stream));
return Effect.suspend(() => renderSafe(self.stream));
}

@@ -53,0 +53,0 @@ }

{
"name": "@effect/printer",
"version": "0.2.0",
"version": "0.3.0",
"license": "MIT",

@@ -10,4 +10,4 @@ "repository": {

"dependencies": {
"@effect/data": "^0.3.2",
"@effect/io": "^0.6.0"
"@effect/data": "^0.7.4",
"@effect/io": "^0.15.1"
},

@@ -14,0 +14,0 @@ "main": "./index.js",

@@ -549,13 +549,13 @@ import * as Equal from "@effect/data/Equal"

return Effect.zipWith(
Effect.suspendSucceed(() => flattenSafe(self.left)),
Effect.suspendSucceed(() => flattenSafe(self.right)),
Effect.suspend(() => flattenSafe(self.left)),
Effect.suspend(() => flattenSafe(self.right)),
(left, right) => cat(left, right)
)
case "FlatAlt":
return Effect.suspendSucceed(() => flattenSafe(self.right))
return Effect.suspend(() => flattenSafe(self.right))
case "Union":
return Effect.suspendSucceed(() => flattenSafe(self.left))
return Effect.suspend(() => flattenSafe(self.left))
case "Nest":
return Effect.map(
Effect.suspendSucceed(() => flattenSafe(self.doc)),
Effect.suspend(() => flattenSafe(self.doc)),
nest(self.indent)

@@ -577,3 +577,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => flattenSafe(self.doc)),
Effect.suspend(() => flattenSafe(self.doc)),
annotate(self.annotation)

@@ -603,4 +603,4 @@ )

return Effect.zipWith(
Effect.suspendSucceed(() => changesUponFlatteningSafe(self.left)),
Effect.suspendSucceed(() => changesUponFlatteningSafe(self.right)),
Effect.suspend(() => changesUponFlatteningSafe(self.left)),
Effect.suspend(() => changesUponFlatteningSafe(self.right)),
(left, right) => {

@@ -628,3 +628,3 @@ if (_flatten.isNeverFlat(left) || _flatten.isNeverFlat(right)) {

return Effect.map(
Effect.suspendSucceed(() => changesUponFlatteningSafe(self.doc)),
Effect.suspend(() => changesUponFlatteningSafe(self.doc)),
_flatten.map(nest(self.indent))

@@ -647,3 +647,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => changesUponFlatteningSafe(self.doc)),
Effect.suspend(() => changesUponFlatteningSafe(self.doc)),
_flatten.map(annotate(self.annotation))

@@ -687,3 +687,3 @@ )

return Effect.zipWith(
Effect.suspendSucceed(() => alterAnnotationsSafe(self.left, f)),
Effect.suspend(() => alterAnnotationsSafe(self.left, f)),
alterAnnotationsSafe(self.right, f),

@@ -695,3 +695,3 @@ (left, right) => cat(left, right)

return Effect.zipWith(
Effect.suspendSucceed(() => alterAnnotationsSafe(self.left, f)),
Effect.suspend(() => alterAnnotationsSafe(self.left, f)),
alterAnnotationsSafe(self.right, f),

@@ -703,3 +703,3 @@ (left, right) => flatAlt(left, right)

return Effect.zipWith(
Effect.suspendSucceed(() => alterAnnotationsSafe(self.left, f)),
Effect.suspend(() => alterAnnotationsSafe(self.left, f)),
alterAnnotationsSafe(self.right, f),

@@ -711,3 +711,3 @@ (left, right) => union(left, right)

return Effect.map(
Effect.suspendSucceed(() => alterAnnotationsSafe(self.doc, f)),
Effect.suspend(() => alterAnnotationsSafe(self.doc, f)),
nest(self.indent)

@@ -714,0 +714,0 @@ )

@@ -84,3 +84,3 @@ import * as Equal from "@effect/data/Equal"

Equal.equals(self.stream, that.stream),
PUshAnnotationStream: (self: DocStream.PushAnnotationStream<any>, that: unknown) =>
PushAnnotationStream: (self: DocStream.PushAnnotationStream<any>, that: unknown) =>
isDocStream(that) &&

@@ -240,3 +240,3 @@ that._tag === "PushAnnotationStream" &&

return Effect.map(
Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, stack)),
Effect.suspend(() => alterAnnotationSafe(self.stream, f, stack)),
char(self.char)

@@ -247,3 +247,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, stack)),
Effect.suspend(() => alterAnnotationSafe(self.stream, f, stack)),
text(self.text)

@@ -254,3 +254,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, stack)),
Effect.suspend(() => alterAnnotationSafe(self.stream, f, stack)),
line(self.indentation)

@@ -263,7 +263,7 @@ )

return Effect.map(
Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, List.prepend(stack, DontRemove))),
Effect.suspend(() => alterAnnotationSafe(self.stream, f, List.prepend(stack, DontRemove))),
pushAnnotation(altered.value)
)
}
return Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, List.prepend(stack, Remove)))
return Effect.suspend(() => alterAnnotationSafe(self.stream, f, List.prepend(stack, Remove)))
}

@@ -279,7 +279,7 @@ case "PopAnnotationStream": {

return Effect.map(
Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, stack.tail)),
Effect.suspend(() => alterAnnotationSafe(self.stream, f, stack.tail)),
popAnnotation
)
}
return Effect.suspendSucceed(() => alterAnnotationSafe(self.stream, f, stack.tail))
return Effect.suspend(() => alterAnnotationSafe(self.stream, f, stack.tail))
}

@@ -305,3 +305,3 @@ default: {

return Effect.map(
Effect.suspendSucceed(() => reAnnotateSafe(self.stream, f)),
Effect.suspend(() => reAnnotateSafe(self.stream, f)),
char(self.char)

@@ -312,3 +312,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => reAnnotateSafe(self.stream, f)),
Effect.suspend(() => reAnnotateSafe(self.stream, f)),
text(self.text)

@@ -319,3 +319,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => reAnnotateSafe(self.stream, f)),
Effect.suspend(() => reAnnotateSafe(self.stream, f)),
line(self.indentation)

@@ -326,3 +326,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => reAnnotateSafe(self.stream, f)),
Effect.suspend(() => reAnnotateSafe(self.stream, f)),
pushAnnotation(f(self.annotation))

@@ -332,3 +332,3 @@ )

case "PopAnnotationStream": {
return Effect.suspendSucceed(() => reAnnotateSafe(self.stream, f))
return Effect.suspend(() => reAnnotateSafe(self.stream, f))
}

@@ -349,3 +349,3 @@ default: {

return Effect.map(
Effect.suspendSucceed(() => unAnnotateSafe(self.stream)),
Effect.suspend(() => unAnnotateSafe(self.stream)),
char(self.char)

@@ -356,3 +356,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => unAnnotateSafe(self.stream)),
Effect.suspend(() => unAnnotateSafe(self.stream)),
text(self.text)

@@ -363,3 +363,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => unAnnotateSafe(self.stream)),
Effect.suspend(() => unAnnotateSafe(self.stream)),
line(self.indentation)

@@ -370,3 +370,3 @@ )

case "PopAnnotationStream": {
return Effect.suspendSucceed(() => unAnnotateSafe(self.stream))
return Effect.suspend(() => unAnnotateSafe(self.stream))
}

@@ -396,13 +396,13 @@ default: {

case "CharStream": {
return Effect.suspendSucceed(() => foldMapSafe(self.stream, M, f))
return Effect.suspend(() => foldMapSafe(self.stream, M, f))
}
case "TextStream": {
return Effect.suspendSucceed(() => foldMapSafe(self.stream, M, f))
return Effect.suspend(() => foldMapSafe(self.stream, M, f))
}
case "LineStream": {
return Effect.suspendSucceed(() => foldMapSafe(self.stream, M, f))
return Effect.suspend(() => foldMapSafe(self.stream, M, f))
}
case "PushAnnotationStream": {
return Effect.map(
Effect.suspendSucceed(() => foldMapSafe(self.stream, M, f)),
Effect.suspend(() => foldMapSafe(self.stream, M, f)),
(that) => M.combine(f(self.annotation), that)

@@ -412,3 +412,3 @@ )

case "PopAnnotationStream": {
return Effect.suspendSucceed(() => foldMapSafe(self.stream, M, f))
return Effect.suspend(() => foldMapSafe(self.stream, M, f))
}

@@ -415,0 +415,0 @@ default: {

@@ -205,3 +205,3 @@ import * as Chunk from "@effect/data/Chunk"

Chunk.fromIterable(f(self.annotation)),
Effect.suspendSucceed(() => alterAnnotationsSafe(self.tree, f)),
Effect.suspend(() => alterAnnotationsSafe(self.tree, f)),
(acc, b) => Effect.map(acc, annotation(b))

@@ -252,3 +252,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => foldMapSafe(self.tree, M, f)),
Effect.suspend(() => foldMapSafe(self.tree, M, f)),
(that) => M.combine(f(self.annotation), that)

@@ -317,3 +317,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => renderSimplyDecoratedSafe(self.tree, M, renderText, renderAnnotation)),
Effect.suspend(() => renderSimplyDecoratedSafe(self.tree, M, renderText, renderAnnotation)),
(out) => renderAnnotation(self.annotation, out)

@@ -330,7 +330,7 @@ )

tail,
Effect.suspendSucceed(() => renderSimplyDecoratedSafe(head, M, renderText, renderAnnotation)),
Effect.suspend(() => renderSimplyDecoratedSafe(head, M, renderText, renderAnnotation)),
(acc, tree) =>
Effect.zipWith(
acc,
Effect.suspendSucceed(() => renderSimplyDecoratedSafe(tree, M, renderText, renderAnnotation)),
Effect.suspend(() => renderSimplyDecoratedSafe(tree, M, renderText, renderAnnotation)),
M.combine

@@ -337,0 +337,0 @@ )

@@ -56,3 +56,3 @@ import { dual } from "@effect/data/Function"

case "Empty": {
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, x.pipeline, fits, options))
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, x.pipeline, fits, options))
}

@@ -62,3 +62,3 @@ case "Char": {

return Effect.map(
Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc + 1, x.pipeline, fits, options)),
Effect.suspend(() => wadlerLeijenSafe(nl, cc + 1, x.pipeline, fits, options)),
docStream.char(char)

@@ -70,3 +70,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc + text.length, x.pipeline, fits, options)),
Effect.suspend(() => wadlerLeijenSafe(nl, cc + text.length, x.pipeline, fits, options)),
docStream.text(text)

@@ -77,3 +77,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => wadlerLeijenSafe(x.indent, x.indent, x.pipeline, fits, options)),
Effect.suspend(() => wadlerLeijenSafe(x.indent, x.indent, x.pipeline, fits, options)),
(stream) =>

@@ -88,3 +88,3 @@ docStream.line(

const layoutPipeline = pipeline.cons(x.indent, x.document.left, x.pipeline)
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options))
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options))
}

@@ -94,3 +94,3 @@ case "Cat": {

const outer = pipeline.cons(x.indent, x.document.left, inner)
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, outer, fits, options))
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, outer, fits, options))
}

@@ -100,3 +100,3 @@ case "Nest": {

const layoutPipeline = pipeline.cons(indent, x.document.doc, x.pipeline)
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options))
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options))
}

@@ -107,3 +107,3 @@ case "Union": {

return Effect.zipWith(
Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, leftPipeline, fits, options)),
Effect.suspend(() => wadlerLeijenSafe(nl, cc, leftPipeline, fits, options)),
wadlerLeijenSafe(nl, cc, rightPipeline, fits, options),

@@ -115,11 +115,11 @@ (left, right) => selectNicer(fits, nl, cc, left, right)

const layoutPipeline = pipeline.cons(x.indent, x.document.react(cc), x.pipeline)
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options))
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options))
}
case "WithPageWidth": {
const layoutPipeline = pipeline.cons(x.indent, x.document.react(options.pageWidth), x.pipeline)
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options))
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options))
}
case "Nesting": {
const layoutPipeline = pipeline.cons(x.indent, x.document.react(x.indent), x.pipeline)
return Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options))
return Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options))
}

@@ -130,3 +130,3 @@ case "Annotated": {

return Effect.map(
Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options)),
Effect.suspend(() => wadlerLeijenSafe(nl, cc, layoutPipeline, fits, options)),
(stream) => docStream.pushAnnotation(annotation)(stream)

@@ -139,3 +139,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => wadlerLeijenSafe(nl, cc, x.pipeline, fits, options)),
Effect.suspend(() => wadlerLeijenSafe(nl, cc, x.pipeline, fits, options)),
docStream.popAnnotation

@@ -190,7 +190,7 @@ )

case "Empty": {
return Effect.suspendSucceed(() => compactSafe(tail, i))
return Effect.suspend(() => compactSafe(tail, i))
}
case "Char": {
return Effect.map(
Effect.suspendSucceed(() => compactSafe(tail, i + 1)),
Effect.suspend(() => compactSafe(tail, i + 1)),
DocStream.char(head.char)

@@ -201,3 +201,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => compactSafe(tail, i + head.text.length)),
Effect.suspend(() => compactSafe(tail, i + head.text.length)),
DocStream.text(head.text)

@@ -208,3 +208,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => compactSafe(tail, 0)),
Effect.suspend(() => compactSafe(tail, 0)),
DocStream.line(0)

@@ -214,24 +214,24 @@ )

case "FlatAlt": {
return Effect.suspendSucceed(() => compactSafe(List.cons(head.left, tail), i))
return Effect.suspend(() => compactSafe(List.cons(head.left, tail), i))
}
case "Cat": {
return Effect.suspendSucceed(() => compactSafe(List.cons(head.left, List.cons(head.right, tail)), i))
return Effect.suspend(() => compactSafe(List.cons(head.left, List.cons(head.right, tail)), i))
}
case "Nest": {
return Effect.suspendSucceed(() => compactSafe(List.cons(head.doc, tail), i))
return Effect.suspend(() => compactSafe(List.cons(head.doc, tail), i))
}
case "Union": {
return Effect.suspendSucceed(() => compactSafe(List.cons(head.right, tail), i))
return Effect.suspend(() => compactSafe(List.cons(head.right, tail), i))
}
case "Column": {
return Effect.suspendSucceed(() => compactSafe(List.cons(head.react(i), tail), i))
return Effect.suspend(() => compactSafe(List.cons(head.react(i), tail), i))
}
case "WithPageWidth": {
return Effect.suspendSucceed(() => compactSafe(List.cons(head.react(pageWidth.unbounded), tail), i))
return Effect.suspend(() => compactSafe(List.cons(head.react(pageWidth.unbounded), tail), i))
}
case "Nesting": {
return Effect.suspendSucceed(() => compactSafe(List.cons(head.react(0), tail), i))
return Effect.suspend(() => compactSafe(List.cons(head.react(0), tail), i))
}
case "Annotated": {
return Effect.suspendSucceed(() => compactSafe(List.cons(head.doc, tail), i))
return Effect.suspend(() => compactSafe(List.cons(head.doc, tail), i))
}

@@ -238,0 +238,0 @@ }

@@ -17,4 +17,4 @@ import { dual } from "@effect/data/Function"

return Effect.zipWith(
Effect.suspendSucceed(() => optimizeSafe(self.left, depth)),
Effect.suspendSucceed(() => optimizeSafe(self.right, depth)),
Effect.suspend(() => optimizeSafe(self.left, depth)),
Effect.suspend(() => optimizeSafe(self.right, depth)),
(left, right) => _doc.flatAlt(left, right)

@@ -26,6 +26,6 @@ )

if (_doc.isEmpty(self.left)) {
return Effect.suspendSucceed(() => optimizeSafe(self.right, depth))
return Effect.suspend(() => optimizeSafe(self.right, depth))
}
if (_doc.isEmpty(self.right)) {
return Effect.suspendSucceed(() => optimizeSafe(self.left, depth))
return Effect.suspend(() => optimizeSafe(self.left, depth))
}

@@ -50,3 +50,3 @@ // String documents

return Effect.flatMap(
Effect.suspendSucceed(() => optimizeSafe(_doc.cat(self.left, left), depth)),
Effect.suspend(() => optimizeSafe(_doc.cat(self.left, left), depth)),
(inner) => optimizeSafe(_doc.cat(right, inner), depth)

@@ -59,3 +59,3 @@ )

return Effect.flatMap(
Effect.suspendSucceed(() => optimizeSafe(_doc.cat(self.left, left), depth)),
Effect.suspend(() => optimizeSafe(_doc.cat(self.left, left), depth)),
(inner) => optimizeSafe(_doc.cat(inner, right), depth)

@@ -68,3 +68,3 @@ )

return Effect.flatMap(
Effect.suspendSucceed(() => optimizeSafe(_doc.cat(self.left, left), depth)),
Effect.suspend(() => optimizeSafe(_doc.cat(self.left, left), depth)),
(inner) => optimizeSafe(_doc.cat(inner, right), depth)

@@ -77,3 +77,3 @@ )

return Effect.flatMap(
Effect.suspendSucceed(() => optimizeSafe(_doc.cat(self.left, left), depth)),
Effect.suspend(() => optimizeSafe(_doc.cat(self.left, left), depth)),
(inner) => optimizeSafe(_doc.cat(inner, right), depth)

@@ -86,3 +86,3 @@ )

return Effect.flatMap(
Effect.suspendSucceed(() => optimizeSafe(_doc.cat(right, self.right), depth)),
Effect.suspend(() => optimizeSafe(_doc.cat(right, self.right), depth)),
(inner) => optimizeSafe(_doc.cat(left, inner), depth)

@@ -95,3 +95,3 @@ )

return Effect.flatMap(
Effect.suspendSucceed(() => optimizeSafe(_doc.cat(right, self.right), depth)),
Effect.suspend(() => optimizeSafe(_doc.cat(right, self.right), depth)),
(inner) => optimizeSafe(_doc.cat(left, inner), depth)

@@ -101,4 +101,4 @@ )

return Effect.zipWith(
Effect.suspendSucceed(() => optimizeSafe(self.left, depth)),
Effect.suspendSucceed(() => optimizeSafe(self.right, depth)),
Effect.suspend(() => optimizeSafe(self.left, depth)),
Effect.suspend(() => optimizeSafe(self.right, depth)),
(left, right) => _doc.cat(left, right)

@@ -119,9 +119,9 @@ )

const doc = self.doc
return Effect.suspendSucceed(() => optimizeSafe(_doc.nest(doc.doc, self.indent + doc.indent), depth))
return Effect.suspend(() => optimizeSafe(_doc.nest(doc.doc, self.indent + doc.indent), depth))
}
if (self.indent === 0) {
return Effect.suspendSucceed(() => optimizeSafe(self.doc, depth))
return Effect.suspend(() => optimizeSafe(self.doc, depth))
}
return Effect.map(
Effect.suspendSucceed(() => optimizeSafe(self.doc, depth)),
Effect.suspend(() => optimizeSafe(self.doc, depth)),
(doc) => _doc.nest(doc, self.indent)

@@ -132,4 +132,4 @@ )

return Effect.zipWith(
Effect.suspendSucceed(() => optimizeSafe(self.left, depth)),
Effect.suspendSucceed(() => optimizeSafe(self.right, depth)),
Effect.suspend(() => optimizeSafe(self.left, depth)),
Effect.suspend(() => optimizeSafe(self.right, depth)),
(left, right) => _doc.union(left, right)

@@ -161,3 +161,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => optimizeSafe(self.doc, depth)),
Effect.suspend(() => optimizeSafe(self.doc, depth)),
(doc) => _doc.annotate(doc, self.annotation)

@@ -164,0 +164,0 @@ )

@@ -26,3 +26,3 @@ import { dual } from "@effect/data/Function"

return Effect.map(
Effect.suspendSucceed(() => renderSafe(self.stream)),
Effect.suspend(() => renderSafe(self.stream)),
(rest) => self.char + rest

@@ -33,3 +33,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => renderSafe(self.stream)),
Effect.suspend(() => renderSafe(self.stream)),
(rest) => self.text + rest

@@ -44,3 +44,3 @@ )

return Effect.map(
Effect.suspendSucceed(() => renderSafe(self.stream)),
Effect.suspend(() => renderSafe(self.stream)),
(rest) => indent + rest

@@ -51,3 +51,3 @@ )

case "PushAnnotationStream": {
return Effect.suspendSucceed(() => renderSafe(self.stream))
return Effect.suspend(() => renderSafe(self.stream))
}

@@ -54,0 +54,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc