How to exclude dependencies when building haddocks

2019-05-05 03:20发布

问题:

Is there any way to build haddock docs for specific packages? I'm trying to build haddocks for my package/app alone, but the following command seems to be doing this for all dependencies, as well:

stack haddock webservice

(where webservice is the name of my package/app)

回答1:

The flag you're looking for is --no-haddock-deps as in

stack haddock --no-haddock-deps webservice