Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Program-name/Mercury/program-name.mercury
Normal file
16
Task/Program-name/Mercury/program-name.mercury
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
:- module program_name.
|
||||
:- interface.
|
||||
|
||||
:- import_module io.
|
||||
:- pred main(io::di, io::uo) is det.
|
||||
|
||||
:- implementation.
|
||||
|
||||
main(!IO) :-
|
||||
% The first argument is used as the program name if it is not otherwise
|
||||
% available. (We could also have used the predicate io.progname_base/4
|
||||
% if we did not want path preceding the program name.)
|
||||
io.progname("", ProgName, !IO),
|
||||
io.print_line(ProgName, !IO).
|
||||
|
||||
:- end_module program_name.
|
||||
Loading…
Add table
Add a link
Reference in a new issue