Elm- The Elm language module.

Safe HaskellNone



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



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.