Elm programming language

Tagged: programming-language, javascript

A quick intro to developing with Elm

$ cd
$ mkdir elmdev
$ cd elmdev
# install cabal if you haven't already
$ cabal update
# create a sandbox to play in.
$ cabal sandbox init
$ cabal install elm elm-server elm-repl elm-get
# the elm binaries are under ./bin directory
$ export PATH=`pwd`/.cabal-sandbox/bin:$PATH
# test the setup
$ elm
Usage: elm [OPTIONS] [FILES]
For more help: elm --help
# Lets create a "Hello world" program
$ cat >> hello.elm
main : Element
main = plainText "Hello, World!"
^D
# lets compile the file
$ elm hello.elm
Generating HTML ... Done
$ ls build
hello.html
# lets open the generated HTML file
$ open build/hello.html
# wait! it gets even better
$ elm-server
# open http://localhost:8000/ and click on "hello.elm"

Observations

Publications

Blog posts

Learn

Code

Courseware

Videos

News