I know that in Prolog every file defining a module should start with the instruction
:- module(module_name, [pred1/arity, ...]).
How can I retrieve the list of public predicates exported by a module at runtime?
SOLVED.
?- all(X, [module]:current_predicate(X),CX).