use fnType everywhere to create function types
This commit is contained in:
parent
a8260f2afb
commit
6023efc295
10 changed files with 33 additions and 27 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import { fnType } from "../function_registry.js";
|
||||
import {Type, Function} from "../metacircular.js";
|
||||
import {Bool} from "./symbols.js";
|
||||
|
||||
const eqBool = x => y => x === y;
|
||||
|
||||
const Bool_to_Bool = {in: Bool, out: Bool};
|
||||
const Bool_to_Bool_to_Bool = {in: Bool, out: Bool_to_Bool};
|
||||
const Bool_to_Bool = fnType({in: Bool, out: Bool});
|
||||
const Bool_to_Bool_to_Bool = fnType({in: Bool, out: Bool_to_Bool});
|
||||
|
||||
export const ModuleBool = [
|
||||
{i: Bool , t: Type },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue