Hadrian: handle Haddock's resource directory
authorAlec Theriault <alec.theriault@gmail.com>
Thu, 10 Jan 2019 11:45:06 +0000 (03:45 -0800)
committerBen Gamari <ben@smart-cactus.org>
Wed, 16 Jan 2019 19:17:47 +0000 (14:17 -0500)
commit2e05912086bbb8eab213d44af300ecc396d912aa
treeb8b17a3e299f57ffb5bf7eb33049608f00eb19f5
parent46d46ede77ef327966e9364800c7da52c208d8ae
Hadrian: handle Haddock's resource directory

Fixes #16105

  * Require Haddock's resource as runtime dependencies of the Haddock
    builder. This means we no longer have to `need` particular resources
    in every other documentation rule.

  * Do a _tracked_ copy of both the 'html' and 'latex' folder resource
    folders.

  * Move resources into `stage1/lib` (NB: the `haddock` binary goes in
    `stage1/bin`). Besides now actually matching the Haddock script
    wrapper generated by BinaryDist, this also prepares for Haddock
    in relocatable build folder detecting its own resources.
hadrian/src/Builder.hs
hadrian/src/Rules/Documentation.hs
hadrian/src/Settings/Builders/Haddock.hs