GHCi, -fno-code and hs-boot files recompilation is broken
A slightly different issue to #20216 (closed), if you have a module A with a hs-boot file then when we check to see if A.hs-boot needs
to be recompiled by supplying A.hi
(not A.hi-boot
). This always fails because the source hash of A.hs
and A.hs-boot
are obviously different.
The issue is the "cache" is not precise enough, and should cache not just the HPT but a map from ModuleNameWithIsBoot (HomeModInfo, Maybe Linkable)
.