dope2/structures/function.js

16 lines
385 B
JavaScript

import { Type } from "../type.js";
import { typedFnType } from "./types.js";
import { fnType } from "./types.js";
// export const pprintFn = fnT => ``
export const ModuleFunction = {l:[
// binary type constructor: Type -> Type -> Type
...typedFnType(fnType, fnType => fnType
/* in */ (Type)
/* out */ (fnType
/* in */ (Type)
/* out */ (Type)
)
),
]};