Skip to content

Efficient union for ModuleGraph and InstalledModuleEnv

Pepe Iborra requested to merge pepeiborra/ghc:union-modulegraph into master

I noticed that these two data structures are abstract and don't have efficient union operations. The use case is composing HPTs and ModuleGraphs for efficiently incremental load of module interfaces in HLS:

https://github.com/haskell/haskell-language-server/pull/2323/files#diff-114002aaf66277322ecbdf45513e4a64c5080f081f3cdd83611c07d127707305R709-R715

https://github.com/haskell/haskell-language-server/pull/2323/files#diff-114002aaf66277322ecbdf45513e4a64c5080f081f3cdd83611c07d127707305R706

Merge request reports