rename some things

This commit is contained in:
Joeri Exelmans 2025-04-20 21:09:51 +02:00
parent e04cac4f7d
commit 8a4bd44f04
16 changed files with 92 additions and 60 deletions

View file

@ -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);