Skip to content

ghc-boot: Eliminate unnecessary use of getEnvironment

Ben Gamari requested to merge wip/T20431 into master

Previously we were using System.Environment.getEnvironment, which decodes all environment variables into Haskell Strings, where a simple environment lookup would do. This made the compiler's allocations unnecessarily dependent on the environment.

Fixes #20431.

Merge request reports