aboutsummaryrefslogtreecommitdiff
path: root/neb/std/repl.py
diff options
context:
space:
mode:
Diffstat (limited to 'neb/std/repl.py')
-rw-r--r--neb/std/repl.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/neb/std/repl.py b/neb/std/repl.py
index f953e18..3168770 100644
--- a/neb/std/repl.py
+++ b/neb/std/repl.py
@@ -10,7 +10,11 @@ def interpretHowTo(symbol, args, env, ns):
target = evaluate(target, env, ns)
if not isinstance(target, Callable):
raise InterpretPanic(symbol, "expects a func or symbol", args[0])
- print(target.describe())
+ des = target.describe()
+ if isinstance(des, str):
+ print(des)
+ else:
+ print("\n".join(des))
return List([])
REPL.register("howto", Builtin("howto", interpretHowTo, [Arg("symbol", TypeEnum.ANY)], return_type=Type(":list")))