Files
mercury/tests/submodules/parent.child2.m
Zoltan Somogyi c27258ae9c Update the style of tests/submodules/*.m.
Disable irrelevant warnings for a test case.
2021-07-25 14:30:37 +10:00

21 lines
476 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% "Hello World" in Mercury, using nested modules.
:- module parent.child2.
:- interface.
:- import_module io.
:- type foo
---> bar
; baz(int).
:- pred hello(io::di, io::uo) is det.
:- implementation.
hello(!IO) :-
io.write_string("parent.child2.hello\n", !IO).