%---------------------------------------------------------------------------% % 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).