No description
Find a file
2013-11-11 16:30:48 +01:00
compiler Minor reformat of an error message to keep each line under 80 characters 2013-11-11 16:30:48 +01:00
libraries Rename to findAll and find like everyone expects :/ 2013-11-04 17:06:48 +01:00
runtime Stop creating dummy divs around every Element in a collage, fixes ordering issue in elm-at-pldi-2013 2013-11-03 02:29:51 +01:00
server Stop using a custom cache directory, and stop deleting the cache immediately. Also clean up related code. 2013-10-30 16:31:29 +01: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 add note about Regex library 2013-11-02 19:47:21 +01:00
Contributor Agreement.docx Add the contributor agreement. 2013-06-03 15:09:44 -07:00
Elm.cabal Get rid of either-unwrap dependency and use fewer non-total library functions 2013-11-04 13:26:05 +01:00
LICENSE It's 2013 everyone! 2013-09-13 12:09:10 -07:00
README.md Get rid of old info in the readme 2013-10-22 13:54:53 +02: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.

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.