Hadrian: handle Haddock's resource directory

Authored by harpocrates on Jan 10 2019, 5:45 AM.

Description

Hadrian: handle Haddock's resource directory

Fixes Trac #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.

Details

Committed
bgamariJan 16 2019, 1:17 PM
Parents
rGHC46d46ede77ef: Improve clarity of documentation for maybeToList
Branches
Unknown
Tags
Unknown