allow comparison of type variable instances

This commit is contained in:
Joeri Exelmans 2025-05-16 14:07:36 +02:00
parent 8446f9ba9e
commit 0096bb5559

View file

@ -13,7 +13,10 @@ export const compareDynamic = x => y =>
compareTypes(getType(x))(getType(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([
[symbolInt , compareInts ],