Units.ArtifactCompiled units and their serialized .sceo and textual .scei formats.
Raise Error with a formatted message.
type t = {a_name : string;Unit name used in diagnostics and Wasm linking.
*)a_imports : Sce_core.Ast.typ option;Import record type; None for an import-free unit.
a_exports : Sce_core.Ast.typ;a_core : Core_lambdae.Ast.exp;Closed core structure or import function.
*)}The core term has the elaboration of slot_typ as its type. Compilation establishes this invariant; constructing a record does not check it.
val slot_typ : t -> Sce_core.Ast.typThe exports type for an import-free unit, or its functor type otherwise.
val save : string -> t -> unitWrite a format marker and an OCaml-marshaled artifact. Raises Sys_error on file I/O failure.
val load : string -> tRead an artifact produced by a compatible compiler. Checks the format marker, but does not validate marshaled contents; input must be trusted.
val print_typ : Sce_core.Ast.typ -> stringPrint a closed type in interface syntax, choosing names for recursive binders. Labels must be valid surface identifiers for parse_typ to recover the original type.
Expand interface aliases in declaration order. Recursive binders shadow aliases of the same name.
val parse_typ : what:string -> string -> Sce_core.Ast.typParse an interface, expand aliases, and resolve recursive type variables. what identifies the input in parse diagnostics.