gleamunison/bootstrap_types
Type constructors supplied by the runtime rather than user declarations. They are references in ordinary Type.App values, not a second type model.
Values
pub fn host_value() -> ast.Type
A host value whose runtime representation carries no language type tag. This is explicit and local to the FFI boundary, unlike TypeVar(-1), which means inference failed and must never become a stored identity.
pub fn is_type_ref(ref: identity.DefinitionRef) -> Bool
pub fn named(name: String) -> identity.DefinitionRef
pub fn type_name(
ref: identity.DefinitionRef,
) -> option.Option(String)
The single owner of the builtin type-name list: resolves a runtime type-constructor ref to its printed name, or None for user types.