on 096ff99 help sign in
elk/src/Language/Elm.hs
15 lines 519 B history raw
2module Language.Elm where
4import GenerateHtml
5import Text.Blaze.Html (Html)
7-- | The 'compileToHtml' function takes three string arguments: the
8-- location of the Elm runtime (elm-mini.js), the title to be used in
9-- the resulting HTML page, and the Elm source code. For example,
10--
11-- > compileToHtml "/elm-mini.js" "Hello, World!" "main = plainText \"Hello, World!\""
13compileToHtml :: String -> String -> String -> Html
14compileToHtml libLoc fileName source =
15 generateHtml libLoc fileName source