interactive prompt can handle polymorphic types
This commit is contained in:
parent
a0e3aa0cb3
commit
4a4983f693
20 changed files with 485 additions and 276 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue