Skip to content

ghci: Use loadInterfaceForModule rather than loadSrcInterface in mkTopLevEnv

Matthew Pickering requested to merge wip/25951 into master

loadSrcInterface takes a user given ModuleName and resolves it to the module which needs to be loaded (taking into account module renaming/visibility etc).

loadInterfaceForModule takes a specific module and loads it.

The modules in ImpDeclSpec have already been resolved to the actual module to get the information from during renaming. Therefore we just need to fetch the precise interface from disk (and not attempt to rename it again).

Fixes #25951 (closed)

Merge request reports

Loading