diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-10-26 15:07:30 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-12-08 22:45:27 -0500 |
commit | 74c9bf914b31bfdd4353b7ff31efd2d3725bd2bb (patch) | |
tree | e871e06237af1dea4880bcaa6b8e0b43036e805a /testsuite | |
parent | 0a76d7d415cfa8facfa6d36101210f9e2e3ff0a6 (diff) | |
download | haskell-74c9bf914b31bfdd4353b7ff31efd2d3725bd2bb.tar.gz |
backpack: Be more careful when adding together ImportAvails
There was some code in the signature merging logic which added together
the ImportAvails of the signature and the signature which was merged
into it. This had the side-effect of making the merged signature depend
on the signature (via a normal module dependency). The intention was to
propagate orphan instances through the merge but this also messed up
recompilation logic because we shouldn't be attempting to load B.hi when
mergeing it.
The fix is to just combine the part of ImportAvails that we intended to
(transitive info, orphan instances and type family instances) rather
than the whole thing.
Diffstat (limited to 'testsuite')
0 files changed, 0 insertions, 0 deletions