@@ -1,5 +1,5 @@
1−{- | This module exports the functions necessary for compiling Elm code into the
2− respective HTML, CSS, and JS code.
1+{- | This module exports the functions necessary for compiling Elm to JS,
2+ and some utilities for making it easier to find some Elm-related files.
33
44 The documentation for the Elm language is available at
55 <http://elm-lang.org/Documentation.elm>, and many interactive examples are
@@ -11,7 +11,6 @@ import qualified Data.List as List
1111import qualified Data.Map as Map
1212import Data.Version (showVersion)
1313import Generate.JavaScript (jsModule)
14−import Generate.Html (generateHtml)
1514import Initialize (buildFromSource)
1615import Parse.Module (getModuleName)
1716import SourceSyntax.Module
@@ -32,13 +31,6 @@ compile source =
3231moduleName :: String -> Maybe String
3332moduleName = getModuleName
3433
35−-- |This function compiles Elm code into a full HTML page.
36−toHtml :: String -- ^ Location of elm-min.js as expected by the browser
37− -> String -- ^ The page title
38− -> String -- ^ The elm source code
39− -> Html
40−toHtml = generateHtml
41−
4234-- |The absolute path to Elm's runtime system.
4335runtime :: IO FilePath
4436runtime = getDataFileName "elm-runtime.js"