dope2/primitives/bool.js
2025-03-24 17:28:07 +01:00

15 lines
370 B
JavaScript

import { fnType, typedFnType } from "../structures/types.js";
import { Type } from "./types.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))),
]};