[commit: ghc] master: Include usg_file_hash in ghc --show-iface output (8843a39)

git at git.haskell.org git at git.haskell.org
Tue Oct 24 14:44:02 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/8843a39b3c941b1908a8d839f52bc323f3b45081/ghc

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

commit 8843a39b3c941b1908a8d839f52bc323f3b45081
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Fri Oct 20 17:07:27 2017 +0100

    Include usg_file_hash in ghc --show-iface output
    
    Summary:
    Otherwise we can get an iface hash difference, but no indication of what
    caused it in the --show-iface output.
    
    Test Plan: Harbourmaster
    
    Reviewers: austin, bgamari, erikd
    
    Subscribers: rwbarton, thomie
    
    Differential Revision: https://phabricator.haskell.org/D4115


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

8843a39b3c941b1908a8d839f52bc323f3b45081
 compiler/iface/LoadIface.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compiler/iface/LoadIface.hs b/compiler/iface/LoadIface.hs
index 6069828..b91d984 100644
--- a/compiler/iface/LoadIface.hs
+++ b/compiler/iface/LoadIface.hs
@@ -1073,7 +1073,8 @@ pprUsage usage at UsageHomeModule{}
         )
 pprUsage usage at UsageFile{}
   = hsep [text "addDependentFile",
-          doubleQuotes (text (usg_file_path usage))]
+          doubleQuotes (text (usg_file_path usage)),
+          ppr (usg_file_hash usage)]
 pprUsage usage at UsageMergedRequirement{}
   = hsep [text "merged", ppr (usg_mod usage), ppr (usg_mod_hash usage)]
 



More information about the ghc-commits mailing list