No description
Find a file
2013-10-22 10:09:22 +02:00
compiler Fix pattern matching on characters 2013-10-22 07:02:51 +02:00
libraries Make docs nicer 2013-10-22 10:09:22 +02:00
runtime Fix mouse and touch tracking for embedded Elm programs, #291 2013-10-13 19:10:02 -04:00
server Bump version number of elm-server 2013-10-22 06:54:23 +02:00
tests Add occurs check and a test to make sure it works 2013-08-19 22:39:41 -07:00
.gitignore add the new data dir to ignore 2013-08-09 23:39:34 -07:00
changelog.txt Update change log 2013-09-02 16:37:24 -07:00
Contributor Agreement.docx Add the contributor agreement. 2013-06-03 15:09:44 -07:00
Elm.cabal Bump the version number to 0.10 2013-10-18 16:08:38 -04:00
LICENSE It's 2013 everyone! 2013-09-13 12:09:10 -07:00
README.md Update Haskell Platform version 2013-09-07 19:47:05 -05:00
Setup.hs Fix cabal configure in Cabal version 1.18. 2013-09-21 16:52:01 -05:00

Learn about the Elm programming language at elm-lang.org.

Install

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

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.

For me, the executables were placed in /home/evan/.cabal/bin which I appended to the end of my PATH variable in my .bashrc file.

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.

Wrap up

The elm package provides support for compilation of Elm code directly in Haskell and QuasiQuoting. 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.