aboutsummaryrefslogtreecommitdiff
path: root/haddock-library/test/Documentation/Haddock/Parser/UtilSpec.hs
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2018-07-23 13:23:35 -0700
committerAlec Theriault <alec.theriault@gmail.com>2018-07-23 13:52:56 -0700
commit5c7c596c51d69b92164e9ba920157b36ce2b2ec1 (patch)
tree2997379efd54a585236f72591caf0ada13f9d263 /haddock-library/test/Documentation/Haddock/Parser/UtilSpec.hs
parent2a36ae90b79469608e32926f89233904a529832c (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).
Diffstat (limited to 'haddock-library/test/Documentation/Haddock/Parser/UtilSpec.hs')
0 files changed, 0 insertions, 0 deletions