Merge pull request #4277 from namanbharadwaj/patch-1
Replace '-' with '_' in LHS of Node requires
commit97496b736327758c16db2f80b05b82e7ec9c466d
authorAhmad Salim Al-Sibahi <asal@itu.dk>
dateWed 3 Jan 2018, 09:11 (9 years ago)
parent41fcceb74d29c0
src/IRTS/JavaScript/Codegen.hs+1
@@ -89,6 +89,7 @@ includeLibs =
8989 repl '\\' = '_'
9090 repl '/' = '_'
9191 repl '.' = '_'
92+ repl '-' = '_'
9293 repl c = c
9394 in
9495 concatMap (\lib -> "var " ++ (repl <$> lib) ++ " = require(\"" ++ lib ++"\");\n")