aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexwl <alexey.a.kiryushin@gmail.com>2018-10-10 18:30:52 +0300
committerGitHub <noreply@github.com>2018-10-10 18:30:52 +0300
commit1b8661d36ce9dcbcd5a833a79357445fe734426d (patch)
tree23ebd5fb6e936ad65f16149337d74fdc395a9cff
parentf38daf67730fe31b865528eb972c619857e62a5c (diff)
Add `--no-ghc-package-path` option to `stack exec` command in README
It fixed the "Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with Cabal" error.
-rw-r--r--README.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/README.md b/README.md
index f52198f..51892d8 100644
--- a/README.md
+++ b/README.md
@@ -66,7 +66,7 @@ A package should be built using either cabal-install or stack before indexing (`
If there is no globally installed GHC on the system, then it is possible to use `stack exec` command ([https://docs.haskellstack.org/en/stable/GUIDE/#exec](https://docs.haskellstack.org/en/stable/GUIDE/#exec)) that adds a path to GHC binaries installed by Stack to `PATH` environment variable :
```bash
-stack --resolver=lts-11.3 exec haskell-code-indexer -- INDEXER_OPTIONS
+stack --resolver=lts-11.3 exec --no-ghc-package-path haskell-code-indexer -- INDEXER_OPTIONS
```
### Examples :
@@ -116,4 +116,3 @@ haskell-code-server --package PATH1 --package PATH2 --package PATH3 --port 8080
```
Open [http://localhost:8080](http://localhost:8080) in a browser to explore source code of the package.
-