Elm-0.13: The Elm language module.

Safe HaskellNone
LanguageHaskell98

Elm.Internal.Utils

Description

This module exports functions for compiling Elm to JS.

Synopsis

Documentation

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.