diff --git a/compiler/module_qual.collect_mq_info.m b/compiler/module_qual.collect_mq_info.m
index 449fe19f8..810fa088e 100644
--- a/compiler/module_qual.collect_mq_info.m
+++ b/compiler/module_qual.collect_mq_info.m
@@ -15,8 +15,6 @@
 
 :- import_module parse_tree.prog_item.
 
-:- import_module list.
-
 %---------------------------------------------------------------------------%
 
 :- type mq_section
@@ -59,6 +57,7 @@
 :- import_module parse_tree.module_qual.id_set.
 :- import_module parse_tree.parse_sym_name.
 
+:- import_module list.
 :- import_module one_or_more.
 :- import_module one_or_more_map.
 :- import_module require.
diff --git a/compiler/parse_tree_out_type_repn.m b/compiler/parse_tree_out_type_repn.m
index f260ff1a8..7c570b20a 100644
--- a/compiler/parse_tree_out_type_repn.m
+++ b/compiler/parse_tree_out_type_repn.m
@@ -19,8 +19,6 @@
 :- import_module parse_tree.prog_item.
 
 :- import_module io.
-:- import_module list.
-:- import_module maybe.
 
 %---------------------------------------------------------------------------%
 
@@ -59,6 +57,8 @@
 :- import_module parse_tree.prog_util.
 
 :- import_module int.
+:- import_module list.
+:- import_module maybe.
 :- import_module one_or_more.
 :- import_module set.
 :- import_module string.
