diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2018-05-13 18:37:18 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-05-13 22:22:43 -0400 |
commit | 8f3c149d94814e4f278b08c562f06fc257eb3c43 (patch) | |
tree | f21f1db1e12c81b5af10dc80697c2de7ac9a7dbd /testsuite/tests | |
parent | cf88c2b109a9f36d151af7fa0e542c48c98115fa (diff) | |
download | haskell-8f3c149d94814e4f278b08c562f06fc257eb3c43.tar.gz |
Add support for opting out of package environments
This implements the first part proposed in #13753:
Define a special magic "null" environment, which instructs GHC to ignore
any package environment files. To this end, I propose to use the name
`-` (i.e. a single dash), as that is more portable than using the empty
string for environment variables. In other words, a
- `-package-env -` CLI flag, or a
- `GHC_ENVIRONMENT=-` env var (unless a `-package-env` flag is present)
would inhibit GHC from looking up and interpreting any package
environment files from the filesystem; this is the equivalent of
`-ignore-dot-ghci` for package environment files.
Reviewers: bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
GHC Trac Issues: #13753
Differential Revision: https://phabricator.haskell.org/D4690
Diffstat (limited to 'testsuite/tests')
0 files changed, 0 insertions, 0 deletions