[Haskell-cafe] Questions: Using Hackage as a package maintainer?

Henning Thielemann lemming at henning-thielemann.de
Tue Apr 28 06:21:35 UTC 2020


On Tue, 28 Apr 2020, Saurabh Nanda wrote:

> I seem to be struggling with Hackage [1], specifically package candidates. Is this the right place to ask the
> following questions:
>  *  Does Hackage generate docs for package candidates? How long does it take. I have waited for 12+ hours and
>     can't seem to find any docs.

Don't know. At least you can upload package documentation candidates with
   cabal upload --documentation dist/yourpkg-3.1.4-docs.tar.gz

>  *  If building docs fails, where is the error displayed? (especially for package candidates)
>  *  Do **warnings** affect this process? I see the following warning once I upload a package candidate:    
>     'ghc-options: -main-is' is not portable.

Warnings do not block release.

However, "ghc-options: -main-is" should be replaced by the Cabal field 
"Main-Is:"

>  *  Once I upload a package candidate, shouldn't it show-up on this page automatically -
>     https://hackage.haskell.org/packages/candidates/ ? (my package is not showing-up here)

I thought so, but Hackage seems to limit the list to some of the first 
hits.

The candidate would have the URL:
    https://hackage.haskell.org/package/yourpkg-3.1.4/candidate

But Hackage shows this URL if you have successfully uploaded a candidate.


More information about the Haskell-Cafe mailing list