on master help sign in
Generate REPL code in client mode

This way Html and Svg displays as <internals> in the REPL

commitf3bb61090c2e26146b07921e230f3577bb5fa031 authorEvan Czaplicki <evancz@users.noreply.github.com> dateTue 17 Apr 2018, 08:37 (9 years ago) parentff0a99e
1 file changed+1−1
compiler/src/Generate/JavaScript.hs+1−1
compiler/src/Generate/JavaScript.hs+1−1
@@ -71,7 +71,7 @@ addMain mode graph home _ state =
7171generateForRepl :: Opt.Graph -> I.Interface -> ModuleName.Canonical -> N.Name -> B.Builder
7272generateForRepl (Opt.Graph _ graph _) iface home name =
7373 let
74− mode = Mode.dev Mode.Server
74+ mode = Mode.dev Mode.Client
7575 debugState = addGlobal mode graph emptyState (Opt.Global ModuleName.debug "toString")
7676 evalState = addGlobal mode graph debugState (Opt.Global home name)
7777 in