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,10 +1,12 @@
|
|||
import { typedFnType } from "../structures/types.js";
|
||||
import { Bool, Type, Unit } from "./types.js";
|
||||
|
||||
const eqUnit = x => y => x === y;
|
||||
export const eqUnit = x => y => x === y;
|
||||
|
||||
export const unit = {};
|
||||
|
||||
export const ModuleUnit = {l:[
|
||||
{i: {}, t: Unit},
|
||||
{i: unit, t: Unit},
|
||||
|
||||
{i: Unit, t: Type},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue