effx
API reference@effx/compiler

print-args

API reference for @effx/compiler/print-args


Exports Grouped by Category


utils

Unprintable (interface)

A value the writer cannot spell as source; path locates it from the printed root ($, $[0].tags).

Signature

export interface Unprintable {
  readonly path: string
  readonly kind: Extract<
    Parameters<(typeof CoreDiagnostics)["EFFX1102"]["emit"]>[0],
    { readonly _tag: "EffectArgument" }
  >["kind"]
}

printable

Validates value and returns the term that prints it: null, strings, finite numbers and booleans via JSON.stringify; arrays and objects by structure; a lowered { _tag: "Schema" | "Symbol", ref } as a reference to the exported symbol (a member is read off it, User.Public). A lowered Lambda and a non-finite number are Unprintable: they are reported, never dropped.

Signature

declare const printable: (value: Schema.Json, path?: string) => Result.Result<Term, Unprintable>

On this page