This commit is contained in:
Joeri Exelmans 2025-03-24 17:28:07 +01:00
parent 6af72e525c
commit 145835ad5d
22 changed files with 153 additions and 90 deletions

View file

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