miniBill/elm-generic-dict/1.0.1

NOTE: the latest version is 1.1.0

elm-generic-dict Build Status

elm-generic-dict can be used to codegen dictionaries with arbitrary types as keys. It is meant to be used as a library with elm-codegen.

The dictionaries don't contain functions, and the API (of the generated code) doesn't require you to pass any function.

The main disadvantage of using this approach is code duplication, while the advantages are:

  1. does not contain functions (useful for debugging and usage in lamdera),
  2. does not require passing in functions when using it (cleaner API, no possibility of mistakes),
  3. live code inclusion will trim unused functions.