Elm Weekly - Issue #144
The Elm community is seeing the year out on a high note: this week we have posts about facilitating tests with elm-review, combining Elm with Haskell's IHP framework, and using Elm with Snowpack. There is also a new test runner, a visual layout designer that outputs elm-ui code, and a big update to the Elm Catalog.
At the start of 2021, Elm Weekly is going on a break. I plan to publish the next newsletter at the end of January. Happy New Year!
Articles and Discussion
Oftentimes you you don't want the users of your module to create certain directly, and so you don't expose all of the constructors, but you might nonetheless need to create such values in your tests. How can you resolve this? Jeroen Engels explains how elm-review can allow you to expose type constructors only for testing.
Series: IHP with Elm — driftercode.com
Lars Ulvestad has completed this series of posts about combining Elm and a Haskell web framework IHP. Last week's issue featured part 1 (setting things up) and part 2 (passing an initial set of data from IHP to Elm). This week, you can read the rest of the story:
Structure Elm into a multi-widget app for IHP
Make http requests from Elm to IHP
Creating an Elm Project with Snowpack
Mickey Vashchinsky shares a setup of Snowpack with Elm and TailwindCSS which is enabled by the Snowpack Elm Plugin by Marc Walter.
Tools and Projects
passiomatic/elm-designer: A code generator for elm-ui — github.com
Andrea Peltrin has put out a first public version of a visual layout design tool that outputs mdgriffith/elm-ui code.
Elm Catalog: 1000+ packages, and search — korban.net
At last, my Elm Catalog has crossed the 1000 package mark! There are now 1053 Elm 0.19 packages and 88 tools listed across different categories. By popular request, you can now also search packages and tools.
Announcing beta of a new tests runner: elm-test-rs
Matthieu Pizenberg has released an alternative test runner written in Rust. This tool has a few differences from elm-test, such as capturing and reporting calls to Debug.log in failing tests, allowing you to filter the tests to run based on their description, and letting you specify the number of workers used to run the tests.
Talks
That's it for this week!
Please help me offset the costs of Elm Weekly and support my Elm work 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 elmweekly@korban.net, or just hit Reply.