genthaler/elm-enum/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

elm-enum

A library to facilitate using Elm union types as Enums

This module came out of this Discourse discussion

  • OP

    • https://discourse.elm-lang.org/u/chingwa
  • Contributors

    • https://discourse.elm-lang.org/u/rupert
    • https://discourse.elm-lang.org/u/joelq
    • https://discourse.elm-lang.org/u/mfeineis
    • https://discourse.elm-lang.org/u/rgrempel

In the original discussion, there was concern about putting a function in the record, with the potential for having a function in the model and thereby causing serialization issues. In the admittedly simple example project included, the Enum never had a reason to be in the model.

Travis-CI build Status

AppVeyor build status