mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-17 14:57:03 +00:00
Change a bunch of modules to import only one module per line, even
Estimated hours taken: 4 Branches: main compiler/*.m: Change a bunch of modules to import only one module per line, even from the library. compiler/mlds_to_il.m: compiler/mlds_to_managed.m: Convert these modules to our current coding style. Use state variables where appropriate. Use predmode declarations where possible.
This commit is contained in:
@@ -104,29 +104,36 @@
|
||||
:- import_module mdbcomp__prim_data.
|
||||
|
||||
% Standard library modules
|
||||
:- import_module list, map, set.
|
||||
:- import_module term, varset, bool, string, std_util, require.
|
||||
:- import_module bool.
|
||||
:- import_module list.
|
||||
:- import_module map.
|
||||
:- import_module require.
|
||||
:- import_module set.
|
||||
:- import_module std_util.
|
||||
:- import_module string.
|
||||
:- import_module term.
|
||||
:- import_module varset.
|
||||
|
||||
:- type lambda_info --->
|
||||
lambda_info(
|
||||
prog_varset, % from the proc_info
|
||||
map(prog_var, type), % from the proc_info
|
||||
class_constraints, % from the pred_info
|
||||
tvarset, % from the proc_info
|
||||
inst_varset, % from the proc_info
|
||||
map(tvar, type_info_locn),
|
||||
% from the proc_info
|
||||
% (typeinfos)
|
||||
map(class_constraint, prog_var),
|
||||
% from the proc_info
|
||||
% (typeclass_infos)
|
||||
pred_markers, % from the pred_info
|
||||
pred_or_func,
|
||||
string, % pred/func name
|
||||
aditi_owner,
|
||||
module_info,
|
||||
bool % true iff we need to recompute the nonlocals
|
||||
).
|
||||
lambda_info(
|
||||
prog_varset, % from the proc_info
|
||||
map(prog_var, type), % from the proc_info
|
||||
class_constraints, % from the pred_info
|
||||
tvarset, % from the proc_info
|
||||
inst_varset, % from the proc_info
|
||||
map(tvar, type_info_locn),
|
||||
% from the proc_info
|
||||
% (typeinfos)
|
||||
map(class_constraint, prog_var),
|
||||
% from the proc_info
|
||||
% (typeclass_infos)
|
||||
pred_markers, % from the pred_info
|
||||
pred_or_func,
|
||||
string, % pred/func name
|
||||
aditi_owner,
|
||||
module_info,
|
||||
bool % true iff we need to recompute the nonlocals
|
||||
).
|
||||
|
||||
%-----------------------------------------------------------------------------%
|
||||
|
||||
|
||||
Reference in New Issue
Block a user