buildlang 1.15.0

BuildLang (buildc): an effects-oriented compiler with a verified C path, shader output, experimental backends, opt-in linear types, and re-checkable accountability + scientific-runtime receipts
Documentation
// ===============================================================================
// BUILDLANG TYPE SYSTEM
// ===============================================================================
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2022-2026 Zain Dana Harper.
// ===============================================================================

//! # Type System
//!
//! This module implements BuildLang's type system, featuring:
//! - Hindley-Milner type inference with extensions
//! - Bidirectional type checking
//! - Trait-based polymorphism
//! - Higher-kinded types (HKT)
//! - Algebraic effect system
//! - Const generics
//!
//! ## Architecture
//!
//! The type system consists of several components:
//! - `ty`: Core type representation
//! - `context`: Type environment and scoping
//! - `infer`: Type inference engine
//! - `unify`: Unification algorithm
//! - `check`: Type checking passes
//! - `traits`: Trait resolution
//! - `hkt`: Higher-kinded types and kind system
//! - `effects`: Algebraic effect system
//! - `const_generics`: Compile-time constant values as type parameters
//!
//! ## Example
//!
//! ```rust,ignore
//! use buildlang::types::{TypeChecker, TypeContext};
//! use buildlang::ast::Module;
//!
//! let mut ctx = TypeContext::new();
//! let mut checker = TypeChecker::new(&mut ctx);
//! checker.check_module(&module)?;
//! ```

mod builtins;
mod capabilities;
mod check;
mod const_generics;
mod context;
mod dispatch;
mod duplicates;
mod effects;
mod error;
mod hkt;
mod infer;
mod macro_args;
pub mod measured;
mod parallel;
mod parallel_hoist;
pub(crate) mod parallel_walk;
pub use macro_args::macro_call_arg_exprs;
mod recursive;
pub(crate) mod resume_tail;
mod traits;
mod ty;
mod unify;
mod unit_methods;

pub use builtins::*;
pub use capabilities::*;
pub use check::*;
pub use const_generics::*;
pub use context::*;
pub use dispatch::*;
pub use effects::*;
pub use error::*;
pub use hkt::*;
pub use infer::*;
pub use traits::*;
pub use ty::*;
pub use unify::*;