aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorpanne <unknown>2005-01-16 14:14:41 +0000
committerpanne <unknown>2005-01-16 14:14:41 +0000
commite27b5834b38295c4e8901ced4053d37bc63dc72b (patch)
tree500176df0872fda1c741405dc499212169f7805d /src/Main.hs
parentefb81da9576a5b4b9befab399a13efbb563b0f36 (diff)
[haddock @ 2005-01-16 14:14:39 by panne]
Data.Map.unions is left-biased.
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