diff options
author | alexwl <alexey.a.kiryushin@gmail.com> | 2018-10-10 18:30:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-10 18:30:52 +0300 |
commit | 1b8661d36ce9dcbcd5a833a79357445fe734426d (patch) | |
tree | 23ebd5fb6e936ad65f16149337d74fdc395a9cff | |
parent | f38daf67730fe31b865528eb972c619857e62a5c (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.md | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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. - |