GHCi info: Use src file for cache invalidation
ClosedPublic

Authored by alexbiehl on Mar 2 2018, 4:39 AM.

Details

Summary

Prior to this patch GHCi used the modification time of a module's object
file to invalidate the info cache.

We now look at the modification time of the source file, if present.

This addresses part of https://ghc.haskell.org/trac/ghc/ticket/12706#comment:3.

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
alexbiehl created this revision.Mar 2 2018, 4:39 AM
alexbiehl edited the summary of this revision. (Show Details)Mar 2 2018, 4:39 AM
alexbiehl updated the Trac tickets for this revision.

Looks good. This should be a drastical improvement for situations like the one described in #12706.

lelf added a subscriber: lelf.Mar 2 2018, 10:07 AM
bgamari accepted this revision.Mar 2 2018, 10:20 AM
bgamari edited the summary of this revision. (Show Details)

Indeed, Thanks Alex!

This revision is now accepted and ready to land.Mar 2 2018, 10:21 AM
This revision was automatically updated to reflect the committed changes.