mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 02:43:40 +00:00
library/builtin:
Delete the promise_only_solution/1 and promise_only_solution_io/4. Both
have have been marked as obsolete since 2015.
Also delete the non-public impure versions of those, get_one_solution/1
and get_one_solution_io/4. Implementing the pure versions was the only
use of these.
compiler/hlds_goal.m:
Delete a reference to promise_only_solution in a comment.
tests/declarative_debugger/trust.exp:
tests/declarative_debugger/trust.inp:
tests/declarative_debugger/trust_1.m:
Replace a call to promise_only_solution/1; this does simplify this test
a little, but does not affect what the trust_1 module was testing, namely
the user-defined comparison on the type exported by that module.
tests/declarative_debugger/exceptions.m:
tests/hard_coded/myset.m:
tests/hard_coded/user_compare.m:
tests/valid_seq/intermod_nested_module_bug2.m:
extras/curs/samples/nibbles.m:
Replace calls to the now deleted predicates.
31 lines
726 B
Mathematica
31 lines
726 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module intermod_nested_module_bug2.
|
|
|
|
:- interface.
|
|
|
|
:- include_module intermod_nested_module_bug2.sub.
|
|
:- import_module int.
|
|
:- import_module io.
|
|
:- import_module maybe.
|
|
|
|
:- type cgi
|
|
---> cgi(
|
|
content_length :: maybe(int)
|
|
).
|
|
|
|
:- pred get_request(maybe_error(cgi)::out, io::di, io::uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
get_request(Res, !IO) :-
|
|
promise_equivalent_solutions [Res] (
|
|
get_request0(Res)
|
|
).
|
|
|
|
:- pred get_request0(maybe_error(cgi)::out) is cc_multi.
|
|
|
|
get_request0(error("foo")).
|