progress and some refactoring

This commit is contained in:
Joeri Exelmans 2025-03-31 15:35:02 +02:00
parent d236eca5e5
commit d8ca2f3999
25 changed files with 376 additions and 163 deletions

View file

@ -1,8 +1,8 @@
import { makeGeneric } from "../generics/generics";
import { Type } from "../primitives/types";
import { SymbolT, Type, Unit } from "../primitives/types";
import { typedFnType } from "../structures/types";
import { Bool, Byte, Char, Double, Int } from "../primitives/types";
import { deepEqual } from "../util";
import { deepEqual } from "../util/util";
import { eqDictType } from "./eq_type";
export const getEq = numDict => numDict.eq;
@ -32,10 +32,12 @@ const eq = x => y => deepEqual(x,y);
const EqDict = {eq};
export const EqInstances = new Map([
[Int , EqDict],
[Bool , EqDict],
[Double, EqDict],
[Byte , EqDict],
[Char , EqDict],
[Type , EqDict],
[Int , EqDict],
[Bool , EqDict],
[Double , EqDict],
[Byte , EqDict],
[Char , EqDict],
[Unit , EqDict],
[Type , EqDict],
[SymbolT, EqDict],
]);