on master help sign in
fix bug in loading dependencies for REPL
commit2a8b0054bc65096091c8a482c797cef1158a2bae authorEvan Czaplicki <evancz@users.noreply.github.com> dateThu 19 Sep 2019, 11:09 (7 years ago) parent916e73f
1 file changed+2−2
compiler/src/Generate/JavaScript.hs+2−2
compiler/src/Generate/JavaScript.hs+2−2
@@ -83,7 +83,7 @@ generateForRepl :: Bool -> L.Localizer -> Opt.GlobalGraph -> ModuleName.Canonica
8383generateForRepl ansi localizer (Opt.GlobalGraph graph _) home name (Can.Forall _ tipe) =
8484 let
8585 mode = Mode.Dev Nothing
86− debugState = addGlobal mode graph emptyState (Opt.Global ModuleName.debug "toAnsiString")
86+ debugState = addGlobal mode graph emptyState (Opt.Global ModuleName.debug "toString")
8787 evalState = addGlobal mode graph debugState (Opt.Global home name)
8888 in
8989 "process.on('uncaughtException', function(err) { process.stderr.write(err.toString() + '\\n'); process.exit(1); });"
@@ -119,7 +119,7 @@ generateForReplEndpoint localizer (Opt.GlobalGraph graph _) home maybeName (Can.
119119 let
120120 name = maybe Name.replValueToPrint id maybeName
121121 mode = Mode.Dev Nothing
122− debugState = addGlobal mode graph emptyState (Opt.Global ModuleName.debug "toAnsiString")
122+ debugState = addGlobal mode graph emptyState (Opt.Global ModuleName.debug "toString")
123123 evalState = addGlobal mode graph debugState (Opt.Global home name)
124124 in
125125 Functions.functions