Add 'diagnostic' to the prelude, as well as companion functions.

This is not fully satisfactory as it pollutes a bit the prelude. Ideally, those functions should only be visible
  and usable by the underlying trace code. But for now, we'll just go with it.
This commit is contained in:
KtorZ
2024-07-18 16:07:31 +02:00
parent 754ed07408
commit beb5ac4643
9 changed files with 378 additions and 21 deletions

View File

@@ -46,7 +46,7 @@ impl TestProject {
module_types.insert("aiken".to_string(), builtins::prelude(&id_gen));
module_types.insert("aiken/builtin".to_string(), builtins::plutus(&id_gen));
let functions = builtins::prelude_functions(&id_gen);
let functions = builtins::prelude_functions(&id_gen, &module_types);
let data_types = builtins::prelude_data_types(&id_gen);
TestProject {