progress and some refactoring
This commit is contained in:
parent
d236eca5e5
commit
d8ca2f3999
25 changed files with 376 additions and 163 deletions
|
|
@ -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],
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue