Haskell packages retain references to documentation outputs

  • Open
  • quality assurance status badge
Details
One participant
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Ricardo Wurmus
Severity
normal
R
R
Ricardo Wurmus wrote on 22 May 2020 11:15
(address . bug-guix@gnu.org)
87wo54cotx.fsf@elephly.net
Haskell packages retain references to “doc” outputs, negating the
effects of splitting packages into different outputs.

Take ghc-scientific as an example. “guix gc -R” lists these doc outputs:

/gnu/store/lvas21ha80yp02lc3z8fgpcaf59n1jp7-ghc-unordered-containers-bootstrap-0.2.10.0-doc
/gnu/store/22309kdxaapz6z3jm6wfy6bk1yybvxg9-ghc-hashable-bootstrap-1.2.7.0-doc
/gnu/store/s98b5dv0aa13kkg6cv049b5kj005zvk2-ghc-tf-random-0.5-doc
/gnu/store/57g5fv856pj58pk1b3znixbd42cibjbr-ghc-hunit-1.6.0.0-doc
/gnu/store/nxci29djms5bjagp3ivkxz7j7ank5526-ghc-quickcheck-2.13.2-doc
/gnu/store/awi9fz1f4vqqvi4wa14c21dhwvqv4s7l-ghc-random-1.1-doc
/gnu/store/ilraan6hy64781042ph7d7k6krwjz1w1-ghc-hashable-1.2.7.0-doc
/gnu/store/g525nmafk7yz35wn54b59yrslprzcl2q-ghc-primitive-0.6.4.0-doc
/gnu/store/6yx0cw49561iyikkvb37hd0li6hkcg8z-ghc-8.6.5-doc

--
Ricardo
R
R
Ricardo Wurmus wrote on 22 May 2020 13:54
Re: bug#41450: Acknowledgement (Haskell packages retain references to documentation outputs)
(address . 41450@debbugs.gnu.org)
87o8qgchh7.fsf@elephly.net
The references are likely due to the “haddock-interfaces” and
“haddock-html” fields in the generated “.conf” files. These .conf files
belong to the “lib” directory (so either the “out” output or “lib”
output) and refer to the “doc” output.

“haddock-html” appears to be optional, but “haddock-interfaces” might be
mandatory.

--
Ricardo
R
R
Ricardo Wurmus wrote on 22 May 2020 14:06
Re: Haskell packages retain references to documentation outputs
(address . 41450@debbugs.gnu.org)
87lflkcgxk.fsf@elephly.net
Nixpkgs has the same problem:


Some of the discussion is only available in *video* format, so I’m
watching that now to see if it contains any valuable insights.

--
Ricardo
?