15 lines
495 B
JavaScript
15 lines
495 B
JavaScript
import { fnType, getListType } from "../type_registry.js";
|
|
import {Type, Function} from "../metacircular.js";
|
|
import { makeListModule } from "./list_common.js";
|
|
import { Module } from "./module.js";
|
|
|
|
const Type_to_Type = fnType({in: Type, out: Type});
|
|
const Type_to_Module = fnType({in: Type, out: Module});
|
|
|
|
export const ModuleList = [
|
|
{i: getListType , t: Type_to_Type},
|
|
{i: Type_to_Type , t: Function},
|
|
|
|
{i: makeListModule, t: Type_to_Module},
|
|
{i: Type_to_Module, t: Function},
|
|
];
|