mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 20:03:44 +00:00
Estimated hours taken: 0.5 The Aditi transaction paper published a few years ago contained a small error which I included in my code -- the state arguments passed into queries to ensure that database predicates are only called from within a transaction should have mode `mui' rather than `ui'. Compiling queries with the alias branch mode checker confirms this. Because `mui' modes do not yet work on the main branch, `aditi_mui' (equivalent to `in') is used instead. This change replaces all instances of `aditi_ui' with `aditi_mui'. compiler/*.m: doc/*.texi: extras/aditi/*: tests/valid/aditi*.m: tests/invalid/aditi*.m: s/aditi_ui/aditi_mui
13 lines
228 B
Mathematica
13 lines
228 B
Mathematica
:- module base_relation.
|
|
|
|
:- interface.
|
|
|
|
:- import_module aditi.
|
|
|
|
:- pred base(aditi__state, int, int).
|
|
:- mode base(aditi_mui, in, out) is nondet.
|
|
:- mode base(aditi_mui, out, out) is nondet.
|
|
|
|
:- pragma base_relation(base/3).
|
|
|