Skip to content
An Extended Version of the Compiler for Elm, a functional language for reliable webapps.
Branch: master
Clone or download
Pull request Compare This branch is 14 commits ahead, 407 commits behind elm:master.
Latest commit 83e7c04 May 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Include some updates that were suggested over time Jan 31, 2018
builder/src Enable reactor to return compiled code as application/javascript Sep 2, 2018
compiler/src
docs/elm.json Add necessary indirect dependency to documentation Aug 22, 2018
installers update to 0.19.0-bugfix2 Aug 22, 2018
reactor Move ui/browser/ to reactor/ Nov 13, 2018
terminal/src Allow the reactor to output code compiled with the `--debug` flag Feb 12, 2019
upgrade-docs Merge pull request elm#1761 from webbhuset/added-missing-upgrade-doc Sep 12, 2018
.gitignore Clear out current benchmarks for a more targeted benchmark suite Oct 8, 2015
ContributorAgreement.pdf Shuffle docs around Apr 18, 2018
LICENSE Make license go to present Jul 14, 2017
README.md Update README.md May 3, 2019
elm.cabal Merge branch 'master' of https://github.com/elm/compiler into merge Jan 13, 2019

README.md

The Elm Compiler

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

This is a fork of the Elm Compiler maintained by CurrySoftware GmbH. We merged a few bug fixes by the community and also expanded the reactor.

Build

With Stack:

  1. Install Stack (https://www.haskellstack.org)
  2. Clone the repo
  3. cd compiler
  4. stack init
  5. stack build

Install

The built Elm executable will reside inside .stack-work/dist/<your-arch>/<cabal-version>/build/elm/elm. To install it link or copy it to the /usr/bin/ folder.

For example:

copy .stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/build/elm/elm /usr/bin/elm-dev

or ln -s .stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/build/elm/elm /usr/bin/elm-dev

Using the new Features in Elm Reactor

This Elm-fork contains two new features in the Elm reactor:

  1. The reactor can now emit compiled JavaScript instead of Html with the output=js parameter:
<script src="http://localhost:8000/src/Main.elm?output=js" charset="utf-8"></script>
  1. The reactor can now emit code compiled in debug mode with the debug=true parameter:

http://localhost:8000/src/Main.elm?debug=true

or in combination with JavaScript output:

<script src="http://localhost:8000/src/Main.elm?output=js&debug=true" charset="utf-8"></script>

For a working example check out elm-reactor-example.

Future

We are currently exploring the idea of building a private Elm package repository to facilitate usage of Elm in corporate environments.

Currently, it is not possible to use either local packages or another package repository than package.elm-lang.org.

We want to change that!

If you are a corporate Elm-user and want to support us or if you are interested in a closed beta please contact us through elm@curry-software.com.

Support

Please contact elm@curry-software.com for support.

We also offer Elm Consulting Services for general help with Elm.

You can’t perform that action at this time.