Fix #15369: GHCi doesn't honor :set +c when loading for a second time ...
ClosedPublic

Authored by RolandSenn on Nov 25 2018, 7:20 AM.

Details

Summary

The decision to (re)collect the type info for a (re)loaded module is now taken only by comparing the file timestamps of the .hs file of the module. (Or form the .o file if the .hs file is missing).
If the file timestamp changes, we (re)collect the type info.
The timestamp of the processing time of the last collect is no longer used.

Test Plan

make test TEST=T15369

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.
RolandSenn created this revision.Nov 25 2018, 7:20 AM
tdammers accepted this revision.Dec 3 2018, 7:41 AM
This revision is now accepted and ready to land.Dec 3 2018, 7:41 AM
This revision was automatically updated to reflect the committed changes.