Forked from
Glasgow Haskell Compiler / GHC
5558 commits behind the upstream repository.

Matthew Pickering
authored
This logic appears to be incorrect as it would drop any dependency which was not in a direct dependency of the package being linked. In the ghc-internals split this started to cause errors because `ghc-internal` is not a direct dependency of most packages, and hence important symbols to keep which are hard coded into the js runtime were getting dropped.