diff options
author | Alec Theriault <alec.theriault@gmail.com> | 2018-07-23 13:23:35 -0700 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-08-21 19:09:37 -0400 |
commit | 40eb5aabed0ae52982a690be311177b2dea2a0bb (patch) | |
tree | d851e590b102f46815d5f848ced3c3150625f102 /hoogle-test/Main.hs | |
parent | 9765c10a27013b5c9168ee507d1f3b34cb4be26f (diff) |
Accumulate explicitly which modules to load for 'attachInstances'
The old approach to fixing #469, while correct, consumes a lot of
memory. We ended up with a HUGE 'GblRdrEnv' in 'ic_rn_gbl_env'. However,
'getNameToInstancesIndex' takes that environment and compresses it down
to a much smaller 'ModuleSet'.
Now, we compute that 'ModuleSet' explicitly as we process modules. That
way we can just tell 'getNameToInstancesIndex' what modules to load
(instead of it trying to compute that information from the interactive
context).
(cherry picked from commit 5c7c596c51d69b92164e9ba920157b36ce2b2ec1)
Diffstat (limited to 'hoogle-test/Main.hs')
0 files changed, 0 insertions, 0 deletions