Learn about the Elm programming language at elm-lang.org.
Install
Platform Agnostic
Note for OS X 10.9 Maverics: you must follow these directions before continuing!
Download the Haskell Platform 2012.2.0.0 or later. Once the Haskell Platform is installed:
cabal update cabal install elm cabal install elm-server
Elm definitely works with version 7.4 of the Haskell compiler (GHC 7.4) which is bundled with version 2012.2.0.0 of the Haskell Platform.
Specific Platforms
Use
To use elm and elm-server you may need to add a new directory to your PATH.
Cabal should tell you where your executables are located upon
successful installation. It'll be something like /home/evan/.cabal/bin
which you should append to your PATH variable.
See this tutorial if you are new to changing your PATH in
Unix/Linux.
My First Project
Now we will create a simple Elm project. The following commands will set-up a very basic project and start the Elm server.
mkdir helloElm
cd helloElm
printf "import Mouse\n\nmain = lift asText Mouse.position" > Main.elm
elm-server
The first two commands create a new directory and navigate into it. The printf
commands place a simple program into Main.elm. Do this manually if you do not
have printf. The final command starts the Elm server at localhost:8000,
allowing you to navigate to Main.elm and see your first program in action.
Final Notes
The elm package provides support for compilation of Elm code directly in Haskell.
Check it out on Hackage if you are interested.
If you are stuck, email the list or ask a question in the #Elm IRC channel.