View documentation for packages installed in a sandbox

Is there a way to view the documentation of any package that I installed in the cabal sandbox? I currently have a script that puts the documentation in a shared path, so I can view it with a simple script server, but I assume this is a better or more acceptable way to do this.

To be clear, I do not mean cabal-dev, but sandbox tools are in the last bondage.

+8
haskell sandbox cabal
source share
1 answer

If you install packages in a sandbox with documentation included ( cabal install --enable-documentation or documentation: True in ./cabal.config ), the generated documentation will be placed in ./.cabal-sandbox/share/doc/$arch-$os-$compiler/$pkigid . In other words, this works the same way as with the DB package of the user package (one of the exceptions is that the local documentation index is not created in the case of the sandbox - this is a known problem ).

+6
source share

All Articles