git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Use Console module in PSCi
bce638cPhil Freeman
psci/PSCi.hs+2−2
@@ -214,8 +214,8 @@ createTemporaryModule :: Bool -> PSCiState -> P.Expr -> P.Module
214createTemporaryModule exec PSCiState{psciImportedModules = imports, psciLetBindings = lets} val =
214createTemporaryModule exec PSCiState{psciImportedModules = imports, psciLetBindings = lets} val =
215 let
215 let
216 moduleName = P.ModuleName [P.ProperName "$PSCI"]
216 moduleName = P.ModuleName [P.ProperName "$PSCI"]
217− traceModule = P.ModuleName [P.ProperName "Debug", P.ProperName "Trace"]
217+ consoleModule = P.ModuleName [P.ProperName "Console"]
218− trace = P.Var (P.Qualified (Just traceModule) (P.Ident "print"))
218+ trace = P.Var (P.Qualified (Just consoleModule) (P.Ident "print"))
219 mainValue = P.App trace (P.Var (P.Qualified Nothing (P.Ident "it")))
219 mainValue = P.App trace (P.Var (P.Qualified Nothing (P.Ident "it")))
220 itDecl = P.ValueDeclaration (P.Ident "it") P.Value [] $ Right val
220 itDecl = P.ValueDeclaration (P.Ident "it") P.Value [] $ Right val
221 mainDecl = P.ValueDeclaration (P.Ident "main") P.Value [] $ Right mainValue
221 mainDecl = P.ValueDeclaration (P.Ident "main") P.Value [] $ Right mainValue