Skip to content

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

Open

Description

@Mikolaj

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).

Activity

  1. added
    cabal-install: v2-build system
    on Mar 19, 2019
  2. ezyang commented on Mar 20, 2019

    @ezyang
    Contributor

    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.

  3. Mikolaj commented on Apr 9, 2021

    @Mikolaj
    MemberAuthor

    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

  4. Mikolaj commented on Jul 16, 2021

    @Mikolaj
    MemberAuthor

    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?

  5. added
    re: internal library
    on Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cabal: cmd/haddockcabal-install: cmd/haddockcabal-install: v2-build systemre: internal librarytype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions