progress with type classes, type inference still very ad-hoc
This commit is contained in:
parent
5283be608b
commit
c5ac55b0ff
10 changed files with 64 additions and 19 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import { sumType } from "../type_registry.js";
|
||||
import { prodType } from "./product.js";
|
||||
import { fnType } from "../metacircular.js";
|
||||
import { Function, Type } from "../metacircular.js";
|
||||
import { Module } from "./list_types/module.js";
|
||||
import { DefaultMap } from "../util.js";
|
||||
|
||||
const sumTypeRegistry = new DefaultMap(leftType => new DefaultMap(rightType => ({ operator: "sum", leftType, rightType })));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue