Elm-0.9.0.1: The Elm language module.

Safe HaskellNone

Language.Elm

Description

This module exports the functions necessary for compiling Elm code into the respective HTML, CSS, and JS code.

The documentation for the Elm language is available at http://elm-lang.org/Documentation.elm, and many interactive examples are available at http://elm-lang.org/Examples.elm

Synopsis

Documentation

compile :: String -> Either String StringSource

This function compiles Elm code to JavaScript. It will return either an error message or the compiled JS code.

moduleName :: String -> Maybe StringSource

This function extracts the module name of a given source program.

runtime :: IO FilePathSource

The absolute path to Elm's runtime system.