Skip to content

Commit

Permalink
Import the parents of *all* imported modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
zsomogyi committed Mar 29, 2019
1 parent 14c234a commit e08b850
Show file tree
Hide file tree
Showing 58 changed files with 87 additions and 9 deletions.
1 change: 1 addition & 0 deletions browser/declarative_analyser.m
Expand Up @@ -142,6 +142,7 @@

:- import_module mdb.browser_info.
:- import_module mdb.declarative_execution.
:- import_module mdbcomp.
:- import_module mdbcomp.prim_data.
:- import_module mdbcomp.program_representation.
:- import_module mdbcomp.rtti_access.
Expand Down
1 change: 1 addition & 0 deletions browser/declarative_debugger.m
Expand Up @@ -67,6 +67,7 @@
:- import_module mdb.help.
:- import_module mdb.io_action.
:- import_module mdb.term_rep.
:- import_module mdbcomp.
:- import_module mdbcomp.program_representation.

:- import_module io.
Expand Down
1 change: 1 addition & 0 deletions browser/declarative_edt.m
Expand Up @@ -65,6 +65,7 @@
:- import_module mdb.browser_info.
:- import_module mdb.declarative_debugger.
:- import_module mdb.declarative_oracle.
:- import_module mdbcomp.
:- import_module mdbcomp.prim_data.
:- import_module mdbcomp.program_representation.
:- import_module mdbcomp.rtti_access.
Expand Down
1 change: 1 addition & 0 deletions browser/declarative_oracle.m
Expand Up @@ -32,6 +32,7 @@
:- import_module mdb.declarative_debugger.
:- import_module mdb.declarative_user.
:- import_module mdb.help.
:- import_module mdbcomp.
:- import_module mdbcomp.rtti_access.
:- import_module mdbcomp.sym_name.

Expand Down
1 change: 1 addition & 0 deletions browser/declarative_user.m
Expand Up @@ -112,6 +112,7 @@
:- import_module mdb.parse.
:- import_module mdb.term_rep.
:- import_module mdb.util.
:- import_module mdbcomp.
:- import_module mdbcomp.prim_data.
:- import_module mdbcomp.program_representation.
:- import_module mdbcomp.rtti_access.
Expand Down
1 change: 1 addition & 0 deletions compiler/add_foreign_proc.m
Expand Up @@ -10,6 +10,7 @@
:- interface.

:- import_module hlds.hlds_module.
:- import_module parse_tree.
:- import_module parse_tree.error_util.
:- import_module parse_tree.prog_item.

Expand Down
2 changes: 2 additions & 0 deletions compiler/add_mode.m
Expand Up @@ -16,6 +16,7 @@
:- interface.

:- import_module hlds.hlds_module.
:- import_module parse_tree.
:- import_module parse_tree.error_util.
:- import_module parse_tree.prog_item.

Expand All @@ -40,6 +41,7 @@
:- import_module hlds.make_hlds_error.
:- import_module libs.
:- import_module libs.options.
:- import_module mdbcomp.
:- import_module mdbcomp.sym_name.
:- import_module parse_tree.prog_mode.

Expand Down
2 changes: 2 additions & 0 deletions compiler/add_mutable_aux_preds.m
Expand Up @@ -11,6 +11,7 @@

:- import_module hlds.hlds_module.
:- import_module hlds.make_hlds.qual_info.
:- import_module parse_tree.
:- import_module parse_tree.error_util.

:- import_module list.
Expand Down Expand Up @@ -50,6 +51,7 @@
:- import_module libs.
:- import_module libs.globals.
:- import_module libs.options.
:- import_module mdbcomp.
:- import_module mdbcomp.builtin_modules.
:- import_module mdbcomp.sym_name.
:- import_module parse_tree.builtin_lib_types.
Expand Down
1 change: 1 addition & 0 deletions compiler/add_pragma_type_spec.m
Expand Up @@ -10,6 +10,7 @@
:- interface.

:- import_module hlds.hlds_module.
:- import_module parse_tree.
:- import_module parse_tree.error_util.
:- import_module parse_tree.prog_item.

Expand Down
3 changes: 3 additions & 0 deletions compiler/add_solver.m
Expand Up @@ -11,7 +11,9 @@

:- import_module hlds.hlds_module.
:- import_module hlds.make_hlds.qual_info.
:- import_module mdbcomp.
:- import_module mdbcomp.sym_name.
:- import_module parse_tree.
:- import_module parse_tree.error_util.
:- import_module parse_tree.prog_data.

Expand Down Expand Up @@ -72,6 +74,7 @@

:- import_module hlds.add_pred.
:- import_module hlds.make_hlds.add_foreign_proc.
:- import_module libs.
:- import_module libs.globals.
:- import_module parse_tree.prog_data_foreign.
:- import_module parse_tree.prog_mode.
Expand Down
2 changes: 2 additions & 0 deletions compiler/add_type.m
Expand Up @@ -20,6 +20,7 @@

:- import_module hlds.hlds_data.
:- import_module hlds.hlds_module.
:- import_module parse_tree.
:- import_module parse_tree.error_util.
:- import_module parse_tree.prog_data.

Expand Down Expand Up @@ -53,6 +54,7 @@
:- import_module hlds.hlds_cons.
:- import_module hlds.make_hlds.make_hlds_passes.
:- import_module hlds.make_hlds_error.
:- import_module libs.
:- import_module libs.globals.
:- import_module libs.op_mode.
:- import_module mdbcomp.
Expand Down
1 change: 1 addition & 0 deletions compiler/analysis.file.m
Expand Up @@ -17,6 +17,7 @@
:- module analysis.file.
:- interface.

:- import_module libs.
:- import_module libs.globals.

% read_module_overall_status(Compiler, Globals, ModuleName,
Expand Down
2 changes: 1 addition & 1 deletion compiler/delay_partial_inst.m
Expand Up @@ -109,6 +109,7 @@
:- module check_hlds.delay_partial_inst.
:- interface.

:- import_module hlds.
:- import_module hlds.hlds_module.
:- import_module hlds.hlds_pred.

Expand All @@ -125,7 +126,6 @@
:- implementation.

:- import_module check_hlds.inst_test.
:- import_module hlds.
:- import_module hlds.goal_util.
:- import_module hlds.hlds_goal.
:- import_module hlds.hlds_out.
Expand Down
2 changes: 2 additions & 0 deletions compiler/deps_map.m
Expand Up @@ -18,7 +18,9 @@
:- module parse_tree.deps_map.
:- interface.

:- import_module libs.
:- import_module libs.globals.
:- import_module mdbcomp.
:- import_module mdbcomp.sym_name.
:- import_module parse_tree.file_names.
:- import_module parse_tree.module_imports.
Expand Down
2 changes: 1 addition & 1 deletion compiler/det_report.m
Expand Up @@ -25,6 +25,7 @@
:- import_module hlds.hlds_module.
:- import_module hlds.hlds_pred.
:- import_module hlds.instmap.
:- import_module libs.
:- import_module libs.globals.
:- import_module parse_tree.
:- import_module parse_tree.error_util.
Expand Down Expand Up @@ -133,7 +134,6 @@
:- import_module hlds.hlds_out.hlds_out_util.
:- import_module hlds.status.
:- import_module hlds.vartypes.
:- import_module libs.
:- import_module libs.options.
:- import_module mdbcomp.
:- import_module mdbcomp.prim_data.
Expand Down
1 change: 1 addition & 0 deletions compiler/equiv_type.m
Expand Up @@ -100,6 +100,7 @@

:- implementation.

:- import_module mdbcomp.
:- import_module mdbcomp.prim_data.
:- import_module mdbcomp.sym_name.
:- import_module parse_tree.prog_data_foreign.
Expand Down
1 change: 1 addition & 0 deletions compiler/field_access.m
Expand Up @@ -21,6 +21,7 @@
:- import_module hlds.make_hlds.state_var.
:- import_module mdbcomp.
:- import_module mdbcomp.sym_name.
:- import_module parse_tree.
:- import_module parse_tree.error_util.
:- import_module parse_tree.maybe_error.
:- import_module parse_tree.prog_data.
Expand Down
2 changes: 2 additions & 0 deletions compiler/find_module.m
Expand Up @@ -13,8 +13,10 @@
:- module parse_tree.find_module.
:- interface.

:- import_module libs.
:- import_module libs.file_util.
:- import_module libs.globals.
:- import_module mdbcomp.
:- import_module mdbcomp.sym_name.

:- import_module io.
Expand Down
2 changes: 1 addition & 1 deletion compiler/foreign.m
Expand Up @@ -24,6 +24,7 @@
:- import_module hlds.
:- import_module hlds.hlds_data.
:- import_module hlds.hlds_module.
:- import_module libs.
:- import_module libs.globals.
:- import_module mdbcomp.
:- import_module mdbcomp.prim_data.
Expand Down Expand Up @@ -152,7 +153,6 @@

:- implementation.

:- import_module libs.
:- import_module parse_tree.prog_type.

:- import_module require.
Expand Down
3 changes: 3 additions & 0 deletions compiler/goal_expr_to_goal.m
Expand Up @@ -13,6 +13,7 @@
:- import_module hlds.hlds_module.
:- import_module hlds.make_hlds.qual_info.
:- import_module hlds.make_hlds.state_var.
:- import_module parse_tree.
:- import_module parse_tree.error_util.
:- import_module parse_tree.prog_data.

Expand Down Expand Up @@ -54,7 +55,9 @@
:- import_module hlds.make_goal.
:- import_module hlds.make_hlds.field_access.
:- import_module hlds.make_hlds.superhomogeneous.
:- import_module libs.
:- import_module libs.globals.
:- import_module mdbcomp.
:- import_module mdbcomp.builtin_modules.
:- import_module mdbcomp.sym_name.
:- import_module parse_tree.maybe_error.
Expand Down
2 changes: 1 addition & 1 deletion compiler/implementation_defined_literals.m
Expand Up @@ -19,6 +19,7 @@
:- module check_hlds.implementation_defined_literals.
:- interface.

:- import_module hlds.
:- import_module hlds.hlds_module.

:- pred subst_impl_defined_literals(module_info::in, module_info::out) is det.
Expand All @@ -28,7 +29,6 @@

:- implementation.

:- import_module hlds.
:- import_module hlds.hlds_clauses.
:- import_module hlds.hlds_goal.
:- import_module hlds.hlds_out.
Expand Down
2 changes: 2 additions & 0 deletions compiler/make.dependencies.m
Expand Up @@ -17,6 +17,7 @@
:- module make.dependencies.
:- interface.

:- import_module libs.
:- import_module libs.file_util.
:- import_module libs.globals.
:- import_module make.util.
Expand Down Expand Up @@ -186,6 +187,7 @@

:- implementation.

:- import_module parse_tree.
:- import_module parse_tree.file_names.
:- import_module parse_tree.prog_data_foreign.

Expand Down
2 changes: 1 addition & 1 deletion compiler/make.m
Expand Up @@ -22,6 +22,7 @@
:- include_module make.options_file.
:- include_module make.util.

:- import_module libs.
:- import_module libs.file_util.
:- import_module libs.globals.
:- import_module make.options_file.
Expand Down Expand Up @@ -60,7 +61,6 @@

:- import_module backend_libs.
:- import_module backend_libs.compile_target_code.
:- import_module libs.
:- import_module libs.handle_options.
:- import_module libs.md4.
:- import_module libs.options.
Expand Down
3 changes: 3 additions & 0 deletions compiler/make.module_dep_file.m
Expand Up @@ -17,7 +17,9 @@
:- module make.module_dep_file.
:- interface.

:- import_module libs.
:- import_module libs.globals.
:- import_module mdbcomp.
:- import_module mdbcomp.sym_name.

:- import_module io.
Expand All @@ -44,6 +46,7 @@

:- import_module libs.file_util.
:- import_module libs.process_util.
:- import_module parse_tree.
:- import_module parse_tree.error_util.
:- import_module parse_tree.file_names.
:- import_module parse_tree.mercury_to_mercury.
Expand Down
3 changes: 3 additions & 0 deletions compiler/make.module_target.m
Expand Up @@ -17,10 +17,13 @@
:- module make.module_target.
:- interface.

:- import_module backend_libs.
:- import_module backend_libs.compile_target_code.
:- import_module libs.
:- import_module libs.file_util.
:- import_module libs.globals.
:- import_module make.dependencies.
:- import_module parse_tree.
:- import_module parse_tree.module_imports.

:- import_module bool.
Expand Down
2 changes: 2 additions & 0 deletions compiler/make.program_target.m
Expand Up @@ -40,8 +40,10 @@
:- implementation.

:- import_module analysis.
:- import_module libs.
:- import_module libs.compute_grade.
:- import_module libs.process_util.
:- import_module parse_tree.
:- import_module parse_tree.file_names.
:- import_module parse_tree.module_cmds.
:- import_module parse_tree.module_deps_graph.
Expand Down
2 changes: 2 additions & 0 deletions compiler/make.util.m
Expand Up @@ -16,6 +16,7 @@
:- module make.util.
:- interface.

:- import_module libs.
:- import_module libs.globals.

%-----------------------------------------------------------------------------%
Expand Down Expand Up @@ -345,6 +346,7 @@
:- import_module analysis.
:- import_module libs.handle_options.
:- import_module libs.process_util.
:- import_module parse_tree.
:- import_module parse_tree.file_names.
:- import_module parse_tree.prog_foreign.
:- import_module transform_hlds.
Expand Down
1 change: 1 addition & 0 deletions compiler/make_hlds_error.m
Expand Up @@ -21,6 +21,7 @@

:- import_module hlds.hlds_module.
:- import_module hlds.status.
:- import_module mdbcomp.
:- import_module mdbcomp.prim_data.
:- import_module mdbcomp.sym_name.
:- import_module parse_tree.
Expand Down
1 change: 1 addition & 0 deletions compiler/make_hlds_separate_items.m
Expand Up @@ -14,6 +14,7 @@
:- module hlds.make_hlds.make_hlds_passes.make_hlds_separate_items.
:- interface.

:- import_module parse_tree.
:- import_module parse_tree.prog_item.

:- import_module list.
Expand Down
1 change: 1 addition & 0 deletions compiler/mercury_to_mercury.m
Expand Up @@ -18,6 +18,7 @@
:- module parse_tree.mercury_to_mercury.
:- interface.

:- import_module libs.
:- import_module libs.globals.
:- import_module mdbcomp.
:- import_module mdbcomp.sym_name.
Expand Down
1 change: 1 addition & 0 deletions compiler/mmc_analysis.m
Expand Up @@ -21,6 +21,7 @@
:- import_module hlds.
:- import_module hlds.hlds_module.
:- import_module hlds.hlds_pred.
:- import_module mdbcomp.
:- import_module mdbcomp.sym_name.

%-----------------------------------------------------------------------------%
Expand Down
2 changes: 1 addition & 1 deletion compiler/modecheck_unify.m
Expand Up @@ -25,6 +25,7 @@
:- import_module check_hlds.mode_info.
:- import_module hlds.
:- import_module hlds.hlds_goal.
:- import_module parse_tree.
:- import_module parse_tree.prog_data.

% Modecheck a unification.
Expand Down Expand Up @@ -70,7 +71,6 @@
:- import_module mdbcomp.
:- import_module mdbcomp.prim_data.
:- import_module mdbcomp.sym_name.
:- import_module parse_tree.
:- import_module parse_tree.builtin_lib_types.
:- import_module parse_tree.maybe_error.
:- import_module parse_tree.prog_mode.
Expand Down
1 change: 1 addition & 0 deletions compiler/modes.m
Expand Up @@ -159,6 +159,7 @@
:- import_module libs.file_util.
:- import_module libs.globals.
:- import_module libs.options.
:- import_module mdbcomp.
:- import_module mdbcomp.sym_name.
:- import_module parse_tree.prog_mode.
:- import_module parse_tree.prog_out.
Expand Down

0 comments on commit e08b850

Please sign in to comment.