alexwl / haskell-code-explorer

Web application for exploring and understanding Haskell codebases
MIT License
509 stars 20 forks source link

submodule #38

Closed haskell-monad closed 5 years ago

haskell-monad commented 5 years ago

The stack project contains multiple submodules, each with its own .stack-work/dist directory. The dist 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: the libs directory and the services directory of the wire project, all submodules in these two directories have their own .stack-work directory.

https://github.com/wireapp/wire-server

alexwl commented 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
haskell-monad commented 5 years ago

ok, I will try it, thank you.