on master help sign in
Let IDESlave run :pprint
commit5194bf1f97953eee74232b59a83dff8c23b684ce authorDavid Raymond Christiansen <david@davidchristiansen.dk> dateThu 25 Sep 2014, 17:57 (12 years ago) parent7289f34
1 file changed+3−2
src/Idris/REPL.hs+3−2
src/Idris/REPL.hs+3−2
@@ -575,6 +575,7 @@ ideslaveProcess fn (Apropos a) = do process fn (Apropos a)
575575ideslaveProcess fn (WhoCalls n) = process fn (WhoCalls n)
576576ideslaveProcess fn (CallsWho n) = process fn (CallsWho n)
577577ideslaveProcess fn (PrintDef n) = process fn (PrintDef n)
578+ideslaveProcess fn (PPrint fmt n tm) = process fn (PPrint fmt n tm)
578579ideslaveProcess fn _ = iPrintError "command not recognized or not supported"
579580
580581
@@ -1189,7 +1190,7 @@ process fn (PrintDef n) =
11891190
11901191process fn (PPrint fmt width (PRef _ n))
11911192 = do outs <- pprintDef n
1192− iputStrLn =<< renderExternal fmt width (vsep outs)
1193+ iPrintResult =<< renderExternal fmt width (vsep outs)
11931194
11941195
11951196process fn (PPrint fmt width t)
@@ -1198,7 +1199,7 @@ process fn (PPrint fmt width t)
11981199 ist <- getIState
11991200 let ppo = ppOptionIst ist
12001201 ty' = normaliseC ctxt [] ty
1201− iputStrLn =<< renderExternal fmt width (pprintDelab ist tm)
1202+ iPrintResult =<< renderExternal fmt width (pprintDelab ist tm)
12021203
12031204
12041205showTotal :: Totality -> IState -> String