Elm Weekly - Issue #160
Articles and Discussion
Generating elm/json decoders with elm/json decoders
My tool json2elm generates elm/json JSON decoders and encoders from a sample JSON string. A curiously self-referencing thing about it is that it itself uses elm/json decoders to generate elm/json decoders. This post explains how that works.
In this post that's a few years old but still useful, Jöel Quenneville dives into the practical aspects of working with Maybe values.
If you happen to wonder about typeclasses (or lack of) in Elm, there is an extensive discussion happening on Elm Discourse that you might want to check out.
Tools and Projects
Knighty Knight — knightyknight.netlify.app
Ali Ahmed wrote a nice looking chess knight move trainer with elm-ui. You can check out the source code.
Talks and Podcasts
Elm Radio episode 30: Debugging in Elm — elm-radio.com
Jeroen Engels and Dillon Kearns talk about debugging techniques, both Elm-specific and generally applicable, as well as how to make the most of Elm's guarantees when debugging.
Atle Wee Førre describes a fun hack where he used Elm to build a REST API in Node:
That's it for this week!
Please support my work on Elm Weekly and other Elm projects by sponsoring me on GitHub.
If you have something you’d like to submit for an upcoming edition, tweet @elmweekly with a link, send an email through to email@example.com, or just hit Reply.