progress and some refactoring
This commit is contained in:
parent
d236eca5e5
commit
d8ca2f3999
25 changed files with 376 additions and 163 deletions
13
primitives/unit.js
Normal file
13
primitives/unit.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { typedFnType } from "../structures/types.js";
|
||||
import { Bool, Type, Unit } from "./types.js";
|
||||
|
||||
const eqUnit = x => y => x === y;
|
||||
|
||||
export const ModuleUnit = {l:[
|
||||
{i: {}, t: Unit},
|
||||
|
||||
{i: Unit, t: Type},
|
||||
|
||||
// Unit -> Unit -> Bool
|
||||
...typedFnType(eqUnit, fnType => fnType(Unit)(fnType(Unit)(Bool))),
|
||||
]};
|
||||
Loading…
Add table
Add a link
Reference in a new issue