mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
tests/submodules/*.m:
Rename modules as mentioned above.
Indent nested submodules to make them stand out.
Group foreign_procs by what predicate they implement, not by
their implementation language.
tests/submodules/*.m:
tests/submodules/*.err_exp:
tests/submodules/Mmakefile:
tests/submodules/Mercury.options:
Update all references to the moved modules.
37 lines
1004 B
Mathematica
37 lines
1004 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
%
|
|
% Used by use_submodule.m
|
|
|
|
:- module use_submodule_helper_1.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
:- include_module use_submodule_helper_2, use_submodule_helper_3.
|
|
|
|
:- pred hello(io::di, io::uo) is det.
|
|
|
|
:- module use_submodule_helper_1.nested.
|
|
:- interface.
|
|
:- pred hello(io::di, io::uo) is det.
|
|
:- end_module use_submodule_helper_1.nested.
|
|
|
|
:- implementation.
|
|
|
|
hello(!IO) :-
|
|
io.write_string("use_submodule_helper_1: hello\n", !IO).
|
|
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module use_submodule_helper_1.nested.
|
|
:- implementation.
|
|
|
|
hello(!IO) :-
|
|
io.write_string("use_submodule_helper_1__nested: hello\n", !IO).
|
|
|
|
:- end_module use_submodule_helper_1.nested.
|
|
|
|
%---------------------------------------------------------------------------%
|