From 1b8661d36ce9dcbcd5a833a79357445fe734426d Mon Sep 17 00:00:00 2001 From: alexwl Date: Wed, 10 Oct 2018 18:30:52 +0300 Subject: 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. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'README.md') 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. - -- cgit v1.2.3