[Git][ghc/ghc][wip/js-staging] TH: add support for JS files

Sylvain Henry (@hsyl20) gitlab at gitlab.haskell.org
Tue Sep 20 07:56:53 UTC 2022



Sylvain Henry pushed to branch wip/js-staging at Glasgow Haskell Compiler / GHC


Commits:
d2005513 by Sylvain Henry at 2022-09-20T09:59:58+02:00
TH: add support for JS files

- - - - -


1 changed file:

- libraries/template-haskell/Language/Haskell/TH/Syntax.hs


Changes:

=====================================
libraries/template-haskell/Language/Haskell/TH/Syntax.hs
=====================================
@@ -827,6 +827,7 @@ addForeignSource lang src = do
                  LangObjc   -> "m"
                  LangObjcxx -> "mm"
                  LangAsm    -> "s"
+                 LangJs     -> "js"
                  RawObject  -> "a"
   path <- addTempFile suffix
   runIO $ writeFile path src



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d2005513d0a861a79de298f5e91a0a9e38b28bbb

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d2005513d0a861a79de298f5e91a0a9e38b28bbb
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/20220920/6fc80ea9/attachment.html>


More information about the ghc-commits mailing list