Stop retaining GRE closures
GRE closures should never be necessary to Haddock, so we never want to keep them on the heap. Despite that, they are retained by a lot of the data structures that Haddock makes use of. - Attempt to fix that situation by adding strictness to various computations and pruning the `ifaceInstances` field of `Interface` to a much thinner data type. - Removes the `ifaceFamInstances` field, as it was never used. - Move some of the attach instances types (e.g. `SimpleType`) to the types module
Showing
- haddock-api/src/Haddock.hs 3 additions, 3 deletionshaddock-api/src/Haddock.hs
- haddock-api/src/Haddock/Backends/Hoogle.hs 8 additions, 28 deletionshaddock-api/src/Haddock/Backends/Hoogle.hs
- haddock-api/src/Haddock/Backends/LaTeX.hs 0 additions, 2 deletionshaddock-api/src/Haddock/Backends/LaTeX.hs
- haddock-api/src/Haddock/GhcUtils.hs 24 additions, 2 deletionshaddock-api/src/Haddock/GhcUtils.hs
- haddock-api/src/Haddock/Interface.hs 3 additions, 2 deletionshaddock-api/src/Haddock/Interface.hs
- haddock-api/src/Haddock/Interface/AttachInstances.hs 26 additions, 44 deletionshaddock-api/src/Haddock/Interface/AttachInstances.hs
- haddock-api/src/Haddock/Interface/Create.hs 73 additions, 32 deletionshaddock-api/src/Haddock/Interface/Create.hs
- haddock-api/src/Haddock/Interface/LexParseRn.hs 25 additions, 20 deletionshaddock-api/src/Haddock/Interface/LexParseRn.hs
- haddock-api/src/Haddock/Types.hs 92 additions, 13 deletionshaddock-api/src/Haddock/Types.hs
Loading
Please register or sign in to comment