turn the function for creating new types (or type constructors) into a DOPE function
This commit is contained in:
parent
d8ca2f3999
commit
a0e3aa0cb3
12 changed files with 112 additions and 58 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { constructSymbol, eqSymbol, getName } from "../primitives/symbol.js";
|
||||
import { eqSymbol, getName } from "../primitives/symbol.js";
|
||||
import { Bool, SymbolT, Type } from "../primitives/types.js";
|
||||
import { String } from "../structures/list.js";
|
||||
import { typedFnType } from "../structures/types.js";
|
||||
|
|
@ -6,11 +6,11 @@ import { typedFnType } from "../structures/types.js";
|
|||
export const ModuleSymbol = {l:[
|
||||
{i: SymbolT, t: Type},
|
||||
|
||||
...typedFnType(constructSymbol, fnType =>
|
||||
fnType
|
||||
(String)
|
||||
(SymbolT)
|
||||
),
|
||||
// ...typedFnType(constructSymbol, fnType =>
|
||||
// fnType
|
||||
// (String)
|
||||
// (SymbolT)
|
||||
// ),
|
||||
|
||||
...typedFnType(getName, fnType =>
|
||||
fnType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue