mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
35 lines
918 B
Mathematica
35 lines
918 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
%
|
|
% Used by use_submodule.m
|
|
|
|
:- module include_parent__separate.
|
|
|
|
:- interface.
|
|
|
|
% The parent module includes io.
|
|
|
|
:- pred hello(io::di, io::uo) is det.
|
|
|
|
:- pred hello2(io::di, io::uo) is det.
|
|
|
|
:- module include_parent__separate__nested.
|
|
:- interface.
|
|
:- pred hello3(io::di, io::uo) is det.
|
|
:- end_module include_parent__separate__nested.
|
|
|
|
:- implementation.
|
|
|
|
hello(!IO) :-
|
|
io.write_string("include_parent__separate: hello\n", !IO).
|
|
|
|
hello2(!IO) :-
|
|
io.write_string("include_parent__separate: hello2\n", !IO).
|
|
|
|
:- module include_parent__separate__nested.
|
|
:- implementation.
|
|
hello3(!IO) :-
|
|
io.write_string("include_parent__separate__nested: hello\n", !IO).
|
|
:- end_module include_parent__separate__nested.
|