interactive prompt
This commit is contained in:
parent
bc91d9bf39
commit
3596e01c28
9 changed files with 298 additions and 105 deletions
|
|
@ -7,5 +7,10 @@ const eq = x => y => x === y;
|
|||
export const ModuleChar = {l:[
|
||||
{i: Char, t: Type},
|
||||
|
||||
...typedFnType(eq, fnType => fnType({in: Char, out: fnType({in: Char, out: Bool})})),
|
||||
...typedFnType(eq, fnType =>
|
||||
fnType
|
||||
(Char)
|
||||
(fnType
|
||||
(Char)
|
||||
(Bool))),
|
||||
]};
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
// to break up dependency cycles, primitive types are defined in their own JS module
|
||||
|
||||
|
||||
export const Int = { symbol: Symbol('Int') , params: [] };
|
||||
export const Bool = { symbol: Symbol('Bool') , params: [] };
|
||||
export const Double = { symbol: Symbol('Double'), params: [] };
|
||||
export const Byte = { symbol: Symbol('Byte') , params: [] };
|
||||
export const Char = { symbol: Symbol('Char') , params: [] };// Wrapper around function below.
|
||||
export const Char = { symbol: Symbol('Char') , params: [] };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue