interactive prompt can handle polymorphic types

This commit is contained in:
Joeri Exelmans 2025-04-02 15:49:43 +02:00
parent a0e3aa0cb3
commit 4a4983f693
20 changed files with 485 additions and 276 deletions

View file

@ -1,5 +1,5 @@
import { makeGeneric } from "../generics/generics";
import { SymbolT, Type, Unit } from "../primitives/types";
import { GenericType, SymbolT, Type, Unit } from "../primitives/types";
import { typedFnType } from "../structures/types";
import { Bool, Byte, Char, Double, Int } from "../primitives/types";
import { deepEqual } from "../util/util";
@ -22,7 +22,7 @@ export const ModuleEq = {l:[
(a)
(Bool)
)
))),
)), GenericType),
]};
// all our data (and types) are encoded such that we can test equality the same way: