Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

The ignore-exports option is broken and should be removed #861

Open

Description

@sjakobi
No description provided.

Activity

  1. alexbiehl commented on Jun 30, 2018

    @alexbiehl
    Member

    I think we should remove ignore-exports in the next haddock version.

  2. sjakobi commented on Jun 30, 2018

    @sjakobi
    MemberAuthor

    I think we should remove ignore-exports in the next haddock version.

    Background: With Hi Haddock, we serialize the documentation structure in the .hi-files. And we don't want to make GHC act on haddock options for this.

  3. sjakobi commented on Jun 30, 2018

    @sjakobi
    MemberAuthor

    Example of brokenness: #866.

  4. added a commit that references this issue on Jul 12, 2018
  5. added a commit that references this issue on Jul 22, 2018
  6. added a commit that references this issue on Aug 14, 2018
  7. zilinc commented on Sep 11, 2018

    @zilinc

    I'm relying on this option for exactly this reason:

    Causes Haddock to behave as if every module has the	
    ``ignore-exports`` attribute (:ref:`module-attrs`). This might be useful for	
    generating implementation documentation rather than interface	
    documentation, for example.
    

    Are there any alternatives to this option at the moment (or any future plans)?

  8. sjakobi commented on Sep 27, 2018

    @sjakobi
    MemberAuthor

    @zilinc I'm not aware of a real alternative or any plans for one.

    A widely used way to get implementation docs is to have internal modules with no explicit export list, and non-internal modules that partially re-export these internal modules. E.g. containers is structured like this.

  9. added a commit that references this issue on Oct 21, 2018
  10. tysonzero commented on Mar 31, 2022

    @tysonzero

    It seems like the desired behavior would be something like document-unexported, where if there are unexported top level definitions they get added to the end of the export list after a "Not Exported" header for the purposes of haddock.

    However I don't know enough about the internals of haddock/ghc to know how difficult this is to implement.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions