Elm-0.12: The Elm language module.

Safe HaskellNone

Elm.Internal.Utils

Description

This module exports functions for compiling Elm to JS.

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.