[Git][ghc/ghc][wip/js-staging] fix index.html template newlines and use all.js for now (at least it works)
Luite Stegeman (@luite)
gitlab at gitlab.haskell.org
Fri Oct 21 10:11:19 UTC 2022
Luite Stegeman pushed to branch wip/js-staging at Glasgow Haskell Compiler / GHC
Commits:
c859ac8a by Luite Stegeman at 2022-10-21T12:10:59+02:00
fix index.html template newlines and use all.js for now (at least it works)
- - - - -
1 changed file:
- compiler/GHC/StgToJS/Linker/Linker.hs
Changes:
=====================================
compiler/GHC/StgToJS/Linker/Linker.hs
=====================================
@@ -420,16 +420,13 @@ writeHtml out = do
templateHtml :: B.ByteString
templateHtml =
- "<!DOCTYPE html>\
- \<html>\
- \ <head>\
- \ <script language=\"javascript\" src=\"rts.js\"></script>\
- \ <script language=\"javascript\" src=\"lib.js\"></script>\
- \ <script language=\"javascript\" src=\"out.js\"></script>\
- \ </head>\
- \ <body>\
- \ </body>\
- \ <script language=\"javascript\" src=\"runmain.js\" defer></script>\
+ "<!DOCTYPE html>\n\
+ \<html>\n\
+ \ <head>\n\
+ \ </head>\n\
+ \ <body>\n\
+ \ </body>\n\
+ \ <script language=\"javascript\" src=\"all.js\" defer></script>\n\
\</html>"
-- | write the runmain.js file that will be run with defer so that it runs after
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c859ac8a9888ed305347dc0daa86cb75b3fbad26
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c859ac8a9888ed305347dc0daa86cb75b3fbad26
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221021/0aec77c8/attachment-0001.html>
More information about the ghc-commits
mailing list