allow comparison of type variable instances
This commit is contained in:
parent
8446f9ba9e
commit
0096bb5559
1 changed files with 4 additions and 1 deletions
|
|
@ -13,7 +13,10 @@ export const compareDynamic = x => y =>
|
||||||
compareTypes(getType(x))(getType(y))
|
compareTypes(getType(x))(getType(y))
|
||||||
|| makeCompareFn(getType(x))(getInst(x))(getInst(y));
|
|| makeCompareFn(getType(x))(getInst(x))(getInst(y));
|
||||||
|
|
||||||
const cannotCompareTypeVarInstances = _ => _ => { throw new Error("Cannot compare instance of type variables"); }
|
// const cannotCompareTypeVarInstances = _ => _ => { throw new Error("Cannot compare instance of type variables"); }
|
||||||
|
|
||||||
|
|
||||||
|
const cannotCompareTypeVarInstances = _ => _ => 0;
|
||||||
|
|
||||||
const typeSymbolToCmp = new Map([
|
const typeSymbolToCmp = new Map([
|
||||||
[symbolInt , compareInts ],
|
[symbolInt , compareInts ],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue