X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fiface%2FMkIface.lhs;h=15fa7784787d49bf4390ed19e5e35f2406a49fcf;hb=6582768fd0065b9aa4abdd93fdfa6ac1d047482b;hp=7b30a19e556d5d35b948f967799a3c95aa727bb0;hpb=a8457632b7206c164b948fa908e63f5b9ac58cbf;p=ghc-hetmet.git diff --git a/compiler/iface/MkIface.lhs b/compiler/iface/MkIface.lhs index 7b30a19..15fa778 100644 --- a/compiler/iface/MkIface.lhs +++ b/compiler/iface/MkIface.lhs @@ -497,7 +497,7 @@ addFingerprints hsc_env mb_old_fingerprint iface0 new_decls let sorted_deps = sortDependencies (mi_deps iface0) -- the export hash of a module depends on the orphan hashes of the - -- orphan modules below us in the dependeny tree. This is the way + -- orphan modules below us in the dependency tree. This is the way -- that changes in orphans get propagated all the way up the -- dependency tree. We only care about orphan modules in the current -- package, because changes to orphans outside this package will be @@ -915,7 +915,8 @@ mkIfaceExports :: [AvailInfo] -- Group by module and sort by occurrence mkIfaceExports exports = [ (mod, eltsFM avails) - | (mod, avails) <- sortBy (stableModuleCmp `on` fst) (fmToList groupFM) + | (mod, avails) <- sortBy (stableModuleCmp `on` fst) + (moduleEnvToList groupFM) -- NB. the fmToList is in a random order, -- because Ord Module is not a predictable -- ordering. Hence we perform a final sort