Files
mercury/tests/submodules/parent.child.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
474 B
Mathematica

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