Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haddock run as part of new-build ignores internal libraries #5949

Open
Mikolaj opened this issue Mar 19, 2019 · 3 comments
Open

haddock run as part of new-build ignores internal libraries #5949

Mikolaj opened this issue Mar 19, 2019 · 3 comments

Comments

@Mikolaj
Copy link
Member

Mikolaj commented Mar 19, 2019

When I run 'cabal new-build', haddock ignores internal libraries. E.g., in this project

https://github.com/LambdaHack/LambdaHack/blob/ed0328a231a61adfe551de78c4814a9565a7681a/LambdaHack.cabal#L164

OTOH, 'cabal new-haddock' processes all the internal libraries.

BTW, the internal libraries are very useful to me; in particular, they lower compilation time considerably (.hi files don't hog gigabytes of memory).

@ezyang
Copy link
Contributor

ezyang commented Mar 20, 2019

Yes, I think this is a case where someone just needs to look into what actually needs to happen to implement it. When we initially added internal libraries we didn't think to carefully about the interaction with Haddock.

@Mikolaj
Copy link
Member Author

Mikolaj commented Apr 9, 2021

Just to confirm the problem is still there with cabal from master branch. However, much more pressing are haddock-only (probably) bugs with internal libraries, see haskell/haddock#1363

@Mikolaj
Copy link
Member Author

Mikolaj commented Jul 16, 2021

Progress on the haddock front: haskell/haddock#1277 haskell/haddock#1379

What is still missing in cabal? Are some manual workarounds now possible using the new functionality in haddock?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants