Skip to content

The index.html that are supposed to be produced by cabal haddock-project are not here. #8843

Closed

Description

@Kleidukos

Describe the bug
The index.html that are supposed to be produced by cabal haddock-project are not here.

To Reproduce
Steps to reproduce the behavior:

$ git clone https://github.com/haskell-cryptography/libsodium-bindings && cd libsodium-bindings
$ cabal haddock-project
Warning: haddock-project command is experimental, it might break in the future
Resolving dependencies...
Build profile: -w ghc-9.4.4 -O1
[…]
Documentation created:
/tmp/libsodium-bindings/dist-newstyle/build/x86_64-linux/ghc-9.4.4/libsodium-bindings-0.0.1.0/doc/html/libsodium-bindings/index.html
Documentation created:
/tmp/libsodium-bindings/dist-newstyle/build/x86_64-linux/ghc-9.4.4/sel-0.0.1.0/doc/html/sel/index.html
Documentation created: haddocks/index.html
$ file haddocks/index.html
haddocks/index.html: cannot open `haddocks/index.html` (No such file or directory)
$ file /tmp/libsodium-bindings/dist-newstyle/build/x86_64-linux/ghc-9.4.4/sel-0.0.1.0/doc/html/sel/index.html
/tmp/libsodium-bindings/dist-newstyle/build/x86_64-linux/ghc-9.4.4/sel-0.0.1.0/doc/html/sel/index.html: cannot open `/tmp/libsodium-bindings/dist-newstyle/build/x86_64-linux/ghc-9.4.4/sel-0.0.1.0/doc/html/sel/index.html' (No such file or directory)
$ file /tmp/libsodium-bindings/dist-newstyle/build/x86_64-linux/ghc-9.4.4/libsodium-bindings-0.0.1.0/doc/html/libsodium-bindings/index.html
/tmp/libsodium-bindings/dist-newstyle/build/x86_64-linux/ghc-9.4.4/libsodium-bindings-0.0.1.0/doc/html/libsodium-bindings/index.html: cannot open `/tmp/libsodium-bindings/dist-newstyle/build/x86_64-linux/ghc-9.4.4/libsodium-bindings-0.0.1.0/doc/html/libsodium-bindings/index.html' (No such file or directory)

Expected behavior
The files that are advertised to be produced should be here

System information

  • Fedora 37
  • cabal-install version 3.10.1.0
  • The Glorious Glasgow Haskell Compilation System, version 9.4.4

Activity

  1. changed the title [-]Top-level `index.html` that are supposed to be produced by `cabal haddock-project` are not here.[/-] [+]The `index.html` that are supposed to be produced by `cabal haddock-project` are not here.[/+] on Mar 13, 2023
  2. Kleidukos commented on Mar 21, 2023

    @Kleidukos
    MemberAuthor

    @coot May I assign you to this?

  3. self-assigned this
    on Mar 28, 2023
  4. coot commented on Mar 28, 2023

    @coot
    Collaborator

    You need to pass --gen-contents to generate haddock/index.html; the message:

    Documentation created: haddocks/index.html
    

    is misleading though.

    One really wants to use one of: cabal haddock-project --local or cabal haddock-project --hackage.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions