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,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},