Skip to content
  • sheaf's avatar
    19d6d039
    ghci: only keep the GlobalRdrEnv in ModInfo · 19d6d039
    sheaf authored
    The datatype GHC.UI.Info.ModInfo used to store a ModuleInfo,
    which includes a TypeEnv. This can easily cause space leaks as we
    have no way of forcing everything in a type environment.
    
    In GHC, we only use the GlobalRdrEnv, which we can force completely.
    So we only store that instead of a fully-fledged ModuleInfo.
    19d6d039
    ghci: only keep the GlobalRdrEnv in ModInfo
    sheaf authored
    The datatype GHC.UI.Info.ModInfo used to store a ModuleInfo,
    which includes a TypeEnv. This can easily cause space leaks as we
    have no way of forcing everything in a type environment.
    
    In GHC, we only use the GlobalRdrEnv, which we can force completely.
    So we only store that instead of a fully-fledged ModuleInfo.
Loading