This module can be use to codegen a set with a custom type as value.
Starts building a custom set, given the type of the value, the namespace of the resulting file, and a toComparable function.
The toComparable function will be copied in each declaration, so it should be kept very simple (or extracted to a function, and then passed in like { toComparable = Gen.YourType.toString }, or similar).
Use a custom type name for the set type.
Use miniBill/elm-fast-dict as the backing container.
This means that generated code will depend on that package but gives the advantages of that package (read elm-fast-dict's README for pros and cons).
Generates a file from the given configuration.
Generates declarations from the given configuration.
This can be useful if you want to add your own custom declarations to the file.
Configuration used to build a generic set.