for more information visit the package's GitHub page
Package contains the following modules:
This package has been deprecated in favor of the-sett/elm-refine
:
https://package.elm-lang.org/packages/the-sett/elm-refine/latest/
Provides support for various ways of handling enums in Elm.
An enum can be defined as custom type:
type Pet
= Cat
| Dog
| Snake
| Spider
Or as a guarded type:
type Pet
= Pet String
Or just as a list of strings:
[ "Cat"
, "Dog"
, "Snake"
, "Spider"
]
See the various examples under the examples/
folder for each of these ways of defining
an enum.