summaryrefslogtreecommitdiff
path: root/compiler/GHC/Unit/Module/ModGuts.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-02-21 14:33:45 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-03-01 16:23:10 -0500
commit547742682702f08041e518d68d752ef6329843c3 (patch)
tree62c0c6e9b24049b8114e8e4beea6bb187843bd2d /compiler/GHC/Unit/Module/ModGuts.hs
parent80f9133e128abc61913d264ecd8b102517b266f5 (diff)
downloadhaskell-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