aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs
index a83376f3..fcac054b 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -828,7 +828,7 @@ buildOrigEnv :: Module -> Bool -> ModuleMap -> [HsImportDecl]
-> ErrMsgM (Map HsQName HsQName)
buildOrigEnv this_mdl verbose mod_map imp_decls
= do maps <- mapM build imp_decls
- return (Map.unions maps)
+ return (Map.unions (reverse maps))
where
build imp_decl@(HsImportDecl _ mdl qual maybe_as _)
= case Map.lookup mdl mod_map of