[Haskell-cafe] Problem with publishing project/packages

Ben Franksen ben.franksen at online.de
Tue Apr 28 07:23:17 UTC 2020


Am 27.04.20 um 23:43 schrieb Henning Thielemann:
>> So my next thought is: "Let's just put it on Stackage, because the
>> best days of Hackage seem to be over...". However, I cannot do that,
>> because my project needs to compile on Hackage in order to be put on
>> Stackage...
> 
> You only need to _release_ your package on Hackage, it is not required
> that the Hackage server can build it. Stackage builds packages on its own.
> 
> If Hackage fails to build your documentation, you can create it yourself
> and upload it manually:
> 
> $ cabal haddock --for-hackage --hyperlink-source
> $ cabal upload --documentation --publish dist/pkg-0.1-docs.tar.gz

Thanks Henning, this was helpful for me as well. I just uploaded the
docs for darcs-2.14.3 using your recipe.

Note however that for newer cabal-install versions the option names have
changed to --haddock-for-hackage and --haddock-hyperlink-source.

Cheers
Ben



More information about the Haskell-Cafe mailing list