Expand description
Type environment: type-decl info and value-binding scopes.
Structs§
Enums§
Functions§
- ty_
from_ canon - Convert canonical TypeExpr to internal Ty, treating type params as fresh-numbered Vars (0..n in declaration order). When instantiating, we substitute these out.
- ty_
from_ canon_ env - Like
ty_from_canonbut resolvesRecordWithSpreadsby looking up base type names inenv. Called fromadd_user_typeandfunction_schemeso that{ ...Post, extra :: Int }expands to a flatTy::Record.