[commit: ghc] wip/names3: HACK: Work around non-determinism in MkIface (f54f318)

git at git.haskell.org git at git.haskell.org
Tue Sep 13 15:06:58 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/names3
Link       : http://ghc.haskell.org/trac/ghc/changeset/f54f3180655985eb228af84c3fd39d7c3c98f73d/ghc

>---------------------------------------------------------------

commit f54f3180655985eb228af84c3fd39d7c3c98f73d
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Sep 12 12:12:43 2016 -0400

    HACK: Work around non-determinism in MkIface


>---------------------------------------------------------------

f54f3180655985eb228af84c3fd39d7c3c98f73d
 compiler/iface/MkIface.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/iface/MkIface.hs b/compiler/iface/MkIface.hs
index f05426d..1ea59b4 100644
--- a/compiler/iface/MkIface.hs
+++ b/compiler/iface/MkIface.hs
@@ -418,7 +418,7 @@ addFingerprints hsc_env mb_old_fingerprint iface0 new_decls
 
        edges :: [(IfaceDeclABI, Unique, [Unique])]
        edges = [ (abi, getUnique (getOccName decl), out)
-               | decl <- new_decls
+               | decl <- sortBy (comparing getOccName) new_decls
                , let abi = declABI decl
                , let out = localOccs $ freeNamesDeclABI abi
                ]



More information about the ghc-commits mailing list