diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-02-21 14:33:45 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-03-01 16:23:10 -0500 |
commit | 547742682702f08041e518d68d752ef6329843c3 (patch) | |
tree | 62c0c6e9b24049b8114e8e4beea6bb187843bd2d /compiler/GHC/Unit/Module/ModGuts.hs | |
parent | 80f9133e128abc61913d264ecd8b102517b266f5 (diff) | |
download | haskell-547742682702f08041e518d68d752ef6329843c3.tar.gz |
Fix longstanding issue with moduleGraphNodes - no hs-boot files case
In the case when we tell moduleGraphNodes to drop hs-boot files the idea
is to collapse hs-boot files into their hs file nodes. In the old code
* nodeDependencies changed edges from IsBoot to NonBoot
* moduleGraphNodes just dropped boot file nodes
The net result is that any dependencies of the hs-boot files themselves
were dropped. The correct thing to do is
* nodeDependencies changes edges from IsBoot to NonBoot
* moduleGraphNodes merges dependencies of IsBoot and NonBoot nodes.
The result is a properly quotiented dependency graph which contains no
hs-boot files nor hs-boot file edges.
Why this didn't cause endless issues when compiling with boot files, we
will never know.
Diffstat (limited to 'compiler/GHC/Unit/Module/ModGuts.hs')
0 files changed, 0 insertions, 0 deletions