File: test18.m

package info (click to toggle)
elpi 2.0.7-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 50,296 kB
  • sloc: ml: 18,791; makefile: 229; python: 95; sh: 7
file content (27 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
:- module test18.

:- interface.

:- import_module io.
:- pred main(io::di, io::uo) is det.

:- implementation.

:- pred q(int::out) is multi.
q(0).
q(1).

:- pred do(pred).
:- mode do(in((pred) is det)) is det.

do(P) :- P.

:- pred x(int::out) is det.

x(Y) :- do(q(Y)).

main(!IO) :-
  io.write_line(10,!IO).

% cd out && clear && mmc ../tests/sources/functionality/test18.m