15 lines
372 B
JavaScript
15 lines
372 B
JavaScript
import { fnType, typedFnType } from "../structures/types.js";
|
|
import { Type } from "../type.js";
|
|
import { Bool } from "./types.js";
|
|
|
|
const eqBool = x => y => x === y;
|
|
|
|
export const ModuleBool = {l:[
|
|
{i: true , t: Bool},
|
|
{i: false, t: Bool},
|
|
|
|
{i: Bool , t: Type},
|
|
|
|
// Bool -> Bool -> Bool
|
|
...typedFnType(eqBool, fnType => fnType(Bool)(fnType(Bool)(Bool))),
|
|
]};
|