Elm- The Elm language module.

Safe HaskellNone



This module exports the functions necessary for compiling Elm to JS, and some utilities for making it easier to find some Elm-related files.

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.

docs :: IO FilePathSource

The absolute path to Elm's core library documentation.