Elm: Functional Frontend
Frontend web programming presents an interesting challenge for Haskell developers. Ultimately, browsers run on HTML, CSS, and Javascript. This means that whatever you program in, you’d better be able to compile it down to those languages. There are a few pure Haskell approaches out there. For instance, Yesod uses Template Haskell to make HTML splices where you can subsitute variables. Reflex FRP uses GHCJS to compile Haskell to Javascript.
But there are other options as well. In this series, we explore the Elm language. It has a very similar syntax to Haskell and shares many of the same functional principles. We’ll get a lot of the type safety and purity we want from Haskell, in a package that compiles more easily to Javascript.
Elm Part 1: Language Basics
Haskell has a number of interesting libraries for frontend web development. Yesod and Snap come t...
Elm Part 2: Making a Single Page App
Welcome to part 2 of our series on Elm! Elm is a functional language you can use for front-end we...
Elm Part 3: Adding Effects
In part 2 of this series, we dug deeper into using Elm. We saw how to build a more complicated we...
Elm Part 4: Navigation
In part 3 of this series, we learned a few more complexities about how Elm works. We examined how...