on master help sign in
Update to point people to elm-platform to install
72a9517Evan Czaplicki
README.md+11−46
@@ -4,55 +4,20 @@ Learn about the Elm programming language at [elm-lang.org](http://elm-lang.org/)
4
4
5## Install
5## Install
6
6
7−**Arch Linux** — follow [these directions](https://github.com/elm-lang/Elm/wiki/Installing-Elm#arch-linux) and then
7+Follow [these instructions][installer] if you just want to use Elm. To build
8−jump to the [My First Project](#my-first-project) section.
8+the compiler from source, run the following commands:
9−<br/>
10−**OS X 10.9 or XCode 5** &mdash; follow
11−[these directions](http://justtesting.org/post/64947952690/the-glasgow-haskell-compiler-ghc-on-os-x-10-9)
12−before continuing with the platform agnostic directions below.
13
9
14−**Platform Agnostic** &mdash;
10+ [installer]: https://github.com/elm-lang/elm-platform/blob/master/README.md#elm-platform
15−download the [Haskell Platform 2012.2.0.0 or later](http://hackage.haskell.org/platform/).
16−Once the Haskell Platform is installed:
17
11
18− cabal update
12+```bash
19− cabal install elm
13+git clone https://github.com/elm-lang/Elm.git
20− cabal install elm-server
14+cd Elm
15+cabal configure
16+cabal build
17+```
21
18
22−## Use
19+This will build the compiler in `/dist/build/elm/elm` but it will not be on
23−
20+your PATH.
24−To use `elm` and `elm-server` you may need to add a new directory to your PATH.
25−
26−Cabal should tell you where your executables are located upon
27−successful installation. It'll be something like `/home/evan/.cabal/bin`
28−which you should append to your PATH variable.
29−See this tutorial if you are new to changing your PATH in
30−[Unix/Linux](http://www.cyberciti.biz/faq/unix-linux-adding-path/).
31−
32−## My First Project
33−
34−Now we will create a simple Elm project.
35−The following commands will set-up a very basic project and start the Elm server.
36−
37− mkdir helloElm
38− cd helloElm
39− printf "import Mouse\n\nmain = lift asText Mouse.position" > Main.elm
40− elm-server
41−
42−The first two commands create a new directory and navigate into it. The `printf`
43−commands place a simple program into `Main.elm`. Do this manually if you do not
44−have `printf`. The final command starts the Elm server at [localhost:8000](http://localhost:8000/),
45−allowing you to navigate to `Main.elm` and see your first program in action.
46−
47−#### Final Notes
48−
49−The `elm` package provides
50−[some utility functions](http://hackage.haskell.org/package/Elm) for
51−working with Elm in Haskell. This can be useful for creating tooling
52−for Elm, and has been useful for projects like
53−[the website](http://elm-lang.org/) and
54−[`elm-get`](https://github.com/elm-lang/elm-get). Email the list if you
55−want to rely on these functions!
56
21
57If you are stuck, email
22If you are stuck, email
58[the list](https://groups.google.com/forum/?fromgroups#!forum/elm-discuss)
23[the list](https://groups.google.com/forum/?fromgroups#!forum/elm-discuss)