refactor code: move everything from type_registry to "most appropriate" modules

This commit is contained in:
Joeri Exelmans 2025-03-20 18:12:30 +01:00
parent 4ca60784aa
commit 5283be608b
22 changed files with 160 additions and 164 deletions

View file

@ -1,4 +1,4 @@
import { fnType } from "../type_registry.js";
import { fnType } from "../metacircular.js";
import {Function} from "../metacircular.js";
// import {Typed} from "../typed.js";

View file

@ -1,7 +1,8 @@
import { Double } from "../primitives/symbols.js";
import { nominalType, NominalType } from "../structures/nominal_type.js";
import { makeProductType } from "../structures/product.js";
import { prodType, typedFnType } from "../type_registry.js";
import { typedFnType } from "../metacircular.js";
import { prodType } from "../structures/product.js";
const PointCartesian2D = nominalType(
"PointCartesian2D")

View file

@ -2,7 +2,7 @@ import {Function, getIn, getOut} from "../metacircular.js";
import {Module} from "../structures/list_types/module.js";
import { deepEqual } from "../util.js";
import { Typed } from "../typed.js";
import { fnType } from "../type_registry.js";
import { fnType } from "../metacircular.js";
// import {Num, NumDict, getType, getMul} from "../typeclasses/num.js";