1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//! Type inference and Rex type metadata.
//!
//! Embedders usually interact with these types indirectly through
//! [`Engine`](crate::engine::Engine) and [`Module`](crate::engine::Module). Use
//! this module when you need to build dynamic native signatures, inspect
//! inferred types, register Rust ADTs, or run type inference without evaluating
//! a program.
/// Conflict found while collecting algebraic data type declarations.
pub use AdtConflict;
/// Error returned while discovering the ADT family referenced by Rust-facing types.
pub use CollectAdtsError;
/// Error produced by type inference, type registration, or type class resolution.
pub use TypeError;
/// Infer only the final type of a source expression.
pub use infer;
/// Infer a typed expression tree, preserving type information at each node.
pub use infer_typed;
/// Return the parsed Rex program that implements prelude type class methods.
pub use prelude_typeclasses_program;
/// Structured declaration for a Rex algebraic data type.
pub use AdtDecl;
/// A named type parameter in an algebraic data type declaration.
pub use AdtParam;
/// A constructor variant inside an algebraic data type declaration.
pub use AdtVariant;
/// Identifier for one of Rex's built-in host-compatible types.
pub use BuiltinTypeId;
/// A registered type class instance.
pub use Instance;
/// A type class constraint such as `Show a`.
pub use Predicate;
/// Trait for Rust ADT types that can expose structured Rex declarations.
pub use RexAdt;
/// Trait for Rust types that have a corresponding Rex type.
pub use RexType;
/// A polymorphic type scheme with quantified variables and constraints.
pub use Scheme;
/// A Rex type after parsing or inference.
pub use Type;
/// A built-in or user-defined type constructor.
pub use TypeConst;
/// The internal shape of a Rex [`Type`].
pub use TypeKind;
/// A type variable used during Hindley-Milner inference.
pub use TypeVar;
/// Discover the user-defined ADTs mentioned by a collection of Rex types.
pub use collect_adts_in_types;
/// Order an ADT family so dependencies appear before dependents.
pub use order_adt_family;
/// Mutable typing environment used by inference and the engine.
pub use TypeSystem;
/// Generator for fresh type variables during inference.
pub use TypeVarSupply;