listing(Module, PredOrFuncOrType) {ls}
listing/2 is the same command as listing/3 except it prints the listing of the code on the standard output.
Example:
~
/dir/foo'', bar) will display all the predicates bar/n
defined in the module foo which is in ``~
/dir/'' directory.
Module : is_atom_or_string
PredOrFuncOrType : is_mercury_proc_or_type
type of command : opium
listing_hlds(Module, PredOrFuncOrType, Listing)
See listing_hlds/2.
Module : is_atom_or_string
PredOrFuncOrType : is_mercury_proc_or_type
Listing : is_list_or_var
type of command : opium
listing_hlds(Module, PredOrFuncOrType)
listing_hlds/2 and listing_hlds/3 are the same commands as listing/2 and listing/3 except they will list the HLDS procedures instead of the source code. To be able to list such HLDS code, you need to compile your module with ``-dfinal'' option.
Module : is_atom_or_string
PredOrFuncOrType : is_mercury_proc_or_type
type of command : opium
listing_current_procedure {lcp}
listing_current_procedure/0 prints the source code of the current procedure on the user window. If the current procedure is defined in a file that is not in the current directory, you need to specify the path of this file with listing_current_procedure/1.
type of command : opium
listing_current_procedure(Path) {lcp}
listing_current_procedure/1 is the same as listing_current_procedure/0 except you specify the path of the module of the current procedure.
Path : atom
type of command : opium
is_atom_or_string
Type which succeed for an atom or a string.