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 apply(name: String, args: List(ast.Type)) -> ast.Type
pub fn dict_of(key: ast.Type, value: ast.Type) -> ast.Type
pub fn either_of(left: ast.Type, right: ast.Type) -> ast.Type
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 list_of(element: ast.Type) -> ast.Type
pub fn named(name: String) -> identity.DefinitionRef
pub fn pair_of(first: ast.Type, second: ast.Type) -> ast.Type
pub fn process() -> ast.Type
pub fn set_of(element: ast.Type) -> ast.Type
✨ Search Document