Haddock doesn't generate haddock when downloading a package

After I uploaded my package to hacks, it did not generate a peak for other packages.

What did I miss?

What I've done:

  • cabal dist and a package created in the dist directory.
  • open the hackage web download interface and download the package.
  • open the URL and you get a successfully downloaded package, but without haddock. (the package has several documents)

Thank.

+3
source share
3 answers

Documents take a little time to create. I believe that they run at midnight GMT.

+6
source

Besides Thomas's answer, run cabal haddockin the directory of your package and look for any errors.

, wrt. . , , . - .

+1

The documentation seems to be missing because your package was not created correctly. I found this at the end of the log:

src/Network/OAuth2/HTTP/HttpClient.hs:18:8:
    Could not find module `Control.Monad.Trans.Resource'
    It is a member of the hidden package `resourcet-0.3.2.1'.
    Perhaps you need to add `resourcet' to the build-depends in your .cabal file.
    Use -v to see a list of the files searched for.

To avoid such problems, make sure your package is created locally using Cabal before downloading. Embedding with GHC directly often conceals such problems, since it will gladly use all the packages you install, regardless of whether you mentioned them in your file .cabalor not.

0
source

All Articles