Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reenable GHC environment file support
This was temporarily disabled via 3033776 due to haskell#4010 but it turns out that we can easily workaround this for older Cabal versions. All we need to do is inject `--ghc-options=-hide-all-packages` into the flags passed to Setup.hs when an old `Cabal` version is detected (this was suggested by @dcoutts in haskell#4010 (comment)) Luckily, `-hide-all-packages` is idempotent in GHC, so we can place it anywhere on the GHC command-line as well as multiple times with the same result. This would close haskell#4010 (cherry picked from commit 6fc90eb34259170aa4949d2d127c942899f3351e)
- Loading branch information