|Evan Czaplicki 35e07efb85 Merge branch 'master' into dev||6 years ago|
|compiler||6 years ago|
|libraries||6 years ago|
|runtime||6 years ago|
|server||6 years ago|
|tests||6 years ago|
|.gitignore||6 years ago|
|.travis.yml||6 years ago|
|CONTRIBUTING.md||6 years ago|
|ContributorAgreement.pdf||6 years ago|
|Elm.cabal||6 years ago|
|How to Request Features.md||6 years ago|
|LICENSE||6 years ago|
|README.md||6 years ago|
|Setup.hs||6 years ago|
|changelog.md||6 years ago|
Learn about the Elm programming language at elm-lang.org.
Platform Agnostic — 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-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
which you should append to your PATH variable.
See this tutorial if you are new to changing your PATH in
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
commands place a simple program into
Main.elm. Do this manually if you do not
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.
elm package provides
some utility functions for
working with Elm in Haskell. This can be useful for creating tooling
for Elm, and has been useful for projects like
the website and
elm-get. Email the list if you
want to rely on these functions!