on master help sign in
Move all generation code to compiler/src/Generate/
e411af4Evan Czaplicki
builder/src/Generate/Html.hs → compiler/src/Generate/Html.hsrenamed+4−4
@@ -27,14 +27,14 @@ sandwich moduleName javascript =
27</head>
27</head>
28
28
29<body>
29<body>
30−<div id="elm-f0111bc4e658d0f98db96260c16f7e49"></div>
30+<div id="elm-df98db9626"></div>
31<script>
31<script>
32|] <> javascript <> [r|
32|] <> javascript <> [r|
33
33
34−var app = Elm.|] <> name <> [r|.init({ node: document.getElementById("elm-f0111bc4e658d0f98db96260c16f7e49") });
34+var app = Elm.|] <> name <> [r|.init({ node: document.getElementById("elm-df98db9626") });
35−if (document.getElementById("elm-f0111bc4e658d0f98db96260c16f7e49"))
35+if (document.getElementById("elm-df98db9626"))
36{
36{
37− document.getElementById("elm-f0111bc4e658d0f98db96260c16f7e49").innerText = 'This is a headless program, meaning there is nothing to show here.\n\nI started the program anyway though, and you can access it as `app` in the developer console.';
37+ document.getElementById("elm-df98db9626").innerText = 'This is a headless program, meaning there is nothing to show here.\n\nI started the program anyway though, and you can access it as `app` in the developer console.';
38}
38}
39</script>
39</script>
40</body>
40</body>
builder/src/Generate/Functions.hs → compiler/src/Generate/JavaScript/Functions.hsrenamed+5−1
@@ -1,6 +1,10 @@
1{-# LANGUAGE OverloadedStrings #-}
1{-# LANGUAGE OverloadedStrings #-}
2{-# LANGUAGE QuasiQuotes #-}
2{-# LANGUAGE QuasiQuotes #-}
3−module Generate.Functions (functions) where
3+module Generate.Functions
4+ ( functions
5+ )
6+ where
7+
4
8
5import qualified Data.ByteString.Builder as B
9import qualified Data.ByteString.Builder as B
6import Text.RawString.QQ (r)
10import Text.RawString.QQ (r)