I'm new to Haskell, stack and cabal, so things are a little confusing. Indexing works fine on MyProjectFoo, but fails on the subprojects bar and baz because it fails to find the dist directory and setup-config.
In this issue I found that using --dist $(stack path --dist-dir) from the bar or baz directory works.
Would it be reasonable for the indexer to use this if there exists a stack.yaml at any level in the filesystem above the current working directory?
I have a number of cabal packages which live within a stack project.
I'm new to Haskell, stack and cabal, so things are a little confusing. Indexing works fine on MyProjectFoo, but fails on the subprojects bar and baz because it fails to find the
dist
directory andsetup-config
.In this issue I found that using
--dist $(stack path --dist-dir)
from thebar
orbaz
directory works.Would it be reasonable for the indexer to use this if there exists a stack.yaml at any level in the filesystem above the current working directory?
Moved from https://github.com/alexwl/haskell-code-explorer/issues/4#issuecomment-438203905.