Nature, to Be Commanded, Must Be Obeyed

July 24, 2016

Installing Elm with Stack

I am quite conservative with what I install on my computer. Even more so when it comes to installing package some package manager just to be able to use one package hosted. I have been meaning to play with Elm for some time and it was disappointing to see the requirement of npm, in addition to a source install, to use it on GNU/Linux. Of course I have been misreading the following statement:

Second, if you are on some linux OS and just want to use Elm, use the npm installer.

You can either use the npm package, or you can build from source. But I read this as you need both. And then tweeted this:

Then I have stumbled upon this post describing how to build Elm with Stack. I followed the instructions there and managed to install Elm. This post contains slightly modified instructions to build Elm 0.17.1.