fix things
This commit is contained in:
parent
8a4b47df02
commit
4c394441b0
2 changed files with 7 additions and 6 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import { makeCompareFn } from "../compare/dynamic.js";
|
||||
import { makeGeneric } from "../generics/generics.js";
|
||||
import { newDynamic } from "../primitives/dynamic.js";
|
||||
import { Bottom, Type } from "../primitives/primitive_types.js";
|
||||
import { Bottom } from "../primitives/primitive_types.js";
|
||||
import { makeConstructors, makeMatchFn } from "./enum.js";
|
||||
import { getRight } from "./product.js";
|
||||
import { fnType, sumType } from "./type_constructors.js";
|
||||
import { fnType, sumType } from "./type_constructors.types.js";
|
||||
|
||||
// 'variants' is an array of (name: string, type: Type) pairs.
|
||||
// e.g., the list of variants:
|
||||
|
|
@ -77,4 +77,5 @@ export const makeModuleEnum = type => variants => {
|
|||
// compare-function:
|
||||
newDynamic(makeCompareFn(enumType(variants)))
|
||||
];
|
||||
return module;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue