This commit is contained in:
Vitor Santos Costa
2019-04-07 23:09:01 +01:00
parent 31743139b0
commit 1cde9d0eed
7 changed files with 59 additions and 31 deletions

View File

@@ -530,8 +530,8 @@ write_query_answer( Bindings ) :-
write_term(user_error,G,Opts) ;
format(user_error,'~w',[G])
).
'$write_goal_output'(G, First, [M:G|NG], next, NG) :-
'$current_module'(M),
'$write_goal_output'(G0, First, [M:G|NG], next, NG) :-
'$yap_strip_module'(G0,M,G),
( First = first -> true ; format(user_error,',~n',[]) ),
( yap_flag(toplevel_print_options, Opts) ->
write_term(user_error,G,Opts) ;