Git Product home page Git Product logo

ivanov / elm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elm/compiler

0.0 3.0 1.0 4.02 MB

The Elm programming language aims to make web development more pleasant. Elm is a type-safe, functional reactive language that compiles to HTML, CSS, and JavaScript.

Home Page: http://elm-lang.org/

License: BSD 3-Clause "New" or "Revised" License

Haskell 48.18% Elm 25.03% JavaScript 26.79%

elm's Introduction

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

Install

Note for OS X 10.9 Maverics: you must follow these directions before continuing!

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.

elm's People

Contributors

apanatshka avatar cris avatar cstork avatar deadfoxygrandpa avatar dharmatech avatar dobesv avatar i-e-b avatar joeyadams avatar johnpmayer avatar jsl avatar kjgorman avatar lambdatoast avatar laszlopandy avatar madscoaducom avatar maxsnew avatar mcveat avatar mgold avatar michaelt avatar ngunn avatar osa1 avatar osnr avatar perplexes avatar process-bot avatar sheeo avatar techtangents avatar thsoft avatar timthelion avatar tinco avatar tomberek avatar vbychkovsky avatar

Watchers

 avatar  avatar  avatar

Forkers

hornobster

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.