@@ -1,5 +1,5 @@
1−{- | This module exports the functions necessary for compiling Elm code into the
1+{- | This module exports the functions necessary for compiling Elm to JS,
2− respective HTML, CSS, and JS code.
2+ and some utilities for making it easier to find some Elm-related files.
4 The documentation for the Elm language is available at
4 The documentation for the Elm language is available at
5 <http://elm-lang.org/Documentation.elm>, and many interactive examples are
5 <http://elm-lang.org/Documentation.elm>, and many interactive examples are
@@ -11,7 +11,6 @@ import qualified Data.List as List
11import qualified Data.Map as Map
11import qualified Data.Map as Map
12import Data.Version (showVersion)
12import Data.Version (showVersion)
13import Generate.JavaScript (jsModule)
13import Generate.JavaScript (jsModule)
14−import Generate.Html (generateHtml)
15import Initialize (buildFromSource)
14import Initialize (buildFromSource)
16import Parse.Module (getModuleName)
15import Parse.Module (getModuleName)
17import SourceSyntax.Module
16import SourceSyntax.Module
@@ -32,13 +31,6 @@ compile source =
32moduleName :: String -> Maybe String
31moduleName :: String -> Maybe String
33moduleName = getModuleName
32moduleName = getModuleName
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
42-- |The absolute path to Elm's runtime system.
34-- |The absolute path to Elm's runtime system.
43runtime :: IO FilePath
35runtime :: IO FilePath
44runtime = getDataFileName "elm-runtime.js"
36runtime = getDataFileName "elm-runtime.js"