rename some things
This commit is contained in:
parent
e04cac4f7d
commit
8a4bd44f04
16 changed files with 92 additions and 60 deletions
|
|
@ -2,13 +2,13 @@ import { makeCompareFn } from "../compare/registry.js";
|
|||
import { Int, Unit } from "../primitives/types.js";
|
||||
import { unit } from "../primitives/unit.js";
|
||||
import { enumType, makeConstructors, makeMatchFn } from "../structures/enum.js";
|
||||
import { constructorProduct } from "../structures/product.js";
|
||||
import { newProduct } from "../structures/product.js";
|
||||
import { lsType, prettyT } from "../structures/types.js";
|
||||
|
||||
const variants = [
|
||||
constructorProduct("price")(Int),
|
||||
constructorProduct("prices")(lsType(Int)),
|
||||
constructorProduct("not_found")(Unit),
|
||||
newProduct("price")(Int),
|
||||
newProduct("prices")(lsType(Int)),
|
||||
newProduct("not_found")(Unit),
|
||||
];
|
||||
|
||||
const myEnumType = enumType(variants);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue