I just made an experiment with having the compiler generate a representation of an Elm type that could then be used to automatically generate for instance Jason encoders and decoders.
The compiler extension is not done but you can see the experiment at https://github.com/norpan/elm-dynamic-types and I encode unions like this {ConstructorName: [values]} But since it's just Elm functions it would be easy to change given a decent API to the json stuff there. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.