Elm-0.13: The Elm language module.
Elm.Internal.Utils
Description
This module exports functions for compiling Elm to JS.
Synopsis
compile :: String -> Either String String Source
This function compiles Elm code to JavaScript. It will return either an error message or the compiled JS code.
moduleName :: String -> Maybe String Source
This function extracts the module name of a given source program.
nameAndImports :: String -> Maybe (String, [String]) Source
This function extracts the module name and imported modules from a given source program.