No description
Find a file
2013-08-08 17:55:18 -07:00
compiler Fix problems generating functions with 10 or more arguments 2013-08-08 16:04:40 -07:00
libraries Define List.and and List.or 2013-08-08 16:20:16 -07:00
runtime Make sure that screen resize is registered on initialization 2013-08-04 15:27:02 -07:00
server [elm-server] add --port=... command line option. 2013-06-04 11:41:00 +02:00
tests Update changelog with latest parser improvements. 2013-07-16 14:58:02 +02:00
.gitignore Update .gitignore to ignore files in ElmFiles/ directories 2013-07-26 19:09:56 +02:00
changelog.txt Update to talk about ElmFiles/ directory 2013-08-06 12:25:17 -07:00
Contributor Agreement.docx Add the contributor agreement. 2013-06-03 15:09:44 -07:00
Elm.cabal Compile threaded with O2 2013-08-02 22:21:06 -07:00
LICENSE Move the compiler down a directory, mostly. 2013-03-16 12:04:05 -07:00
README.md Make readme more compact 2013-08-08 17:55:18 -07:00
Setup.hs Introduce cache/ and build/ directories 2013-08-06 18:34:23 -07:00

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

Install

On Mac OSX

Use the installer and you are done. Let us know on the list if you have any trouble. If you do have issues, use the on any platform instructions which are known to work reliably.

On any platform

Download the Haskell Platform 2012.2.0.0. Elm definitely works with GHC 7.4, so newer versions of the Haskell Platform may work too. 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.