on master help sign in
Move all generation code to compiler/src/Generate/
commite411af442db7d9e78d1e83bc812396260b4d221a authorEvan Czaplicki <evancz@users.noreply.github.com> dateTue 12 Feb 2019, 19:21 (8 years ago) parent319db32
2 files changed+9−5
builder/src/Generate/Html.hs → compiler/src/Generate/Html.hs+4−4 builder/src/Generate/Functions.hs → compiler/src/Generate/JavaScript/Functions.hs+5−1
builder/src/Generate/Html.hs → compiler/src/Generate/Html.hsrenamed+4−4
@@ -27,14 +27,14 @@ sandwich moduleName javascript =
2727</head>
2828
2929<body>
30−<div id="elm-f0111bc4e658d0f98db96260c16f7e49"></div>
30+<div id="elm-df98db9626"></div>
3131<script>
3232|] <> javascript <> [r|
3333
34−var app = Elm.|] <> name <> [r|.init({ node: document.getElementById("elm-f0111bc4e658d0f98db96260c16f7e49") });
35−if (document.getElementById("elm-f0111bc4e658d0f98db96260c16f7e49"))
34+var app = Elm.|] <> name <> [r|.init({ node: document.getElementById("elm-df98db9626") });
35+if (document.getElementById("elm-df98db9626"))
3636{
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.';
3838}
3939</script>
4040</body>
builder/src/Generate/Functions.hs → compiler/src/Generate/JavaScript/Functions.hsrenamed+5−1
@@ -1,6 +1,10 @@
11{-# LANGUAGE OverloadedStrings #-}
22{-# LANGUAGE QuasiQuotes #-}
3−module Generate.Functions (functions) where
3+module Generate.Functions
4+ ( functions
5+ )
6+ where
7+
48
59import qualified Data.ByteString.Builder as B
610import Text.RawString.QQ (r)