on master help sign in
Add better documentation for `runtimeLocation`.
d0bf866evancz
elm/src/Language/Elm.hs+4−1
@@ -28,7 +28,10 @@ import Paths_Elm
28import qualified Data.Text as TS
28import qualified Data.Text as TS
29import qualified Data.Text.Lazy as TL
29import qualified Data.Text.Lazy as TL
30
30
31+-- |The absolute path to Elm's runtime system.
32+runtimeLocation :: IO FilePath
33+runtimeLocation =
31−runtimeLocation = getDataFileName ("elm-runtime-" ++ showVersion version ++ ".js")
34+ getDataFileName ("elm-runtime-" ++ showVersion version ++ ".js")
32
35
33class ElmSource a where
36class ElmSource a where
34 -- |This function compiles Elm code to three separate parts: HTML, CSS,
37 -- |This function compiles Elm code to three separate parts: HTML, CSS,