Closed haskell-monad closed 5 years ago
Currently, the indexer can only index one Cabal package at a time.
https://github.com/wireapp/wire-server repository contains many Cabal packages (all packages are listed in wire-server/stack.yaml
).
Each Cabal package from the repository can be indexed independently. For example:
haskell-code-indexer --package ~/wire-server/services/galley
haskell-code-indexer --package ~/wire-server/services/cannon
haskell-code-indexer --package ~/wire-server/services/restund
haskell-code-indexer --package ~/wire-server/libs/api-bot
To start the server:
haskell-code-server -p ~/wire-server/services/galley -p ~/wire-server/services/cannon -p ~/wire-server/services/restund -p ~/wire-server/libs/api-bot --port 8080
ok, I will try it, thank you.
The stack project contains multiple submodules, each with its own
.stack-work/dist
directory. Thedist
directory in the root directory of the project does not have a.stack-work
directory. How do you index the package? Can I automatically index all submodule packages? For example: thelibs
directory and theservices
directory of thewire
project, all submodules in these two directories have their own .stack-work directory.https://github.com/wireapp/wire-server