[GHC] #10289: compiling huge HashSet hogs memory