[Haskell-cafe] Problem with publishing project/packages

Dominik Schrempf dominik.schrempf at gmail.com
Tue Apr 28 11:17:12 UTC 2020


By the way, I just failed building the documentation. This is all wrong :|.

    Resolving dependencies...
    Build profile: -w ghc-8.8.3 -O1
    In order, the following will be built (use -v for more details):
     - matrices-0.5.0 (lib) (requires build)
     - storable-complex-0.2.3.0 (lib:storable-complex) (requires build)
     - hmatrix-0.20.0.0 (lib) (requires build)
     - elynx-tools-0.2.2 (lib) (first run)
    Starting     storable-complex-0.2.3.0 (all, legacy fallback)
    Starting     matrices-0.5.0 (lib)
    Building     storable-complex-0.2.3.0 (all, legacy fallback)
    Building     matrices-0.5.0 (lib)

    Failed to build matrices-0.5.0.
    Build log (
    /home/dominik/.cabal/logs/ghc-8.8.3/matrices-0.5.0-fad3378ef6f4b9b628fbbd797b7c85b4d66179cdfbce76fdac9c0e095f6cd439.log
    ):
    Configuring library for matrices-0.5.0..
    Preprocessing library for matrices-0.5.0..
    Building library for matrices-0.5.0..
    [ 1 of 13] Compiling Data.Matrix.Class.Mutable ( src/Data/Matrix/Class/Mutable.hs, dist/build/Data/Matrix/Class/Mutable.o )

    src/Data/Matrix/Class/Mutable.hs:10:1: error:
        Could not find module ‘Control.Monad.Primitive’
        There are files missing in the ‘primitive-0.7.0.1’ package,
        try running 'ghc-pkg check'.
        Use -v (or `:set -v` in ghci) to see a list of the files searched for.
       |
    10 | import           Control.Monad.Primitive     (PrimMonad, PrimState)
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    src/Data/Matrix/Class/Mutable.hs:11:1: error:
        Could not find module ‘Data.Vector.Generic.Mutable’
        There are files missing in the ‘vector-0.12.1.2’ package,
        try running 'ghc-pkg check'.
        Use -v (or `:set -v` in ghci) to see a list of the files searched for.
       |
    11 | import qualified Data.Vector.Generic.Mutable as GM
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Dominik Schrempf <dominik.schrempf at gmail.com> writes:

> Thank you, I also didn't know that a package release is enough to be added to
> Stackage. I was also not aware of the cabal commands creating the documentation
> for Hackage.
>
> Nevertheless, I believe that we should improve on developer-friendliness. In the
> end, we --- the developers and users --- create and maintain the libraries and
> the ecosystem, and we depend on a healthy Haskell ecosystem.
>
> Dominik
>
> Ben Franksen <ben.franksen at online.de> writes:
>
>> 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
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> To (un)subscribe, modify options or view archives go to:
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>> Only members subscribed via the mailman list are allowed to post.



More information about the Haskell-Cafe mailing list