Recently I started to learn Elm-lang to get comfort in the functional world.
This post could be useful for people who try to install Elm-lang.
http://elm-lang.org/ site providing guide to use npm-installer , but this guide is some what different which try to install from the git source. Yes, It will download the raw source code and build the platform for you. It requires Haskel and cabal to make the Elm platfrom from the source.
sudo apt-get install ghc-7.10.1
sudo apt-get install cabal-install-1.22
cabal --version
ghc --version
which cabal
curl https://raw.githubusercontent.com/elm-lang/elm-platform/master/installers/BuildFromSource.hs > BuildFromSource.hs
runhaskell BuildFromSource.hs 0.17
export PATH=/home/ranjithrajd/rspace/software/elm/Elm-Platform/0.15.1/.cabal-sandbox/bin:$PATH
cd /home/ranjithrajd/rspace/tutorial/elm/project
Compile your elm code
elm-make
Start the server
elm-reactor
Install elm html module to the project
elm package install evancz/elm-html
No comments:
Post a Comment