Commit 0c9d7d88 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Add an explicit dependency on pkgDataFile to make sure GhcCabal hscolour is...

Add an explicit dependency on pkgDataFile to make sure GhcCabal hscolour is run after GhcCabal configure.
parent 5c42b582
......@@ -10,9 +10,9 @@ import Settings
-- All of them go into the 'doc' subdirectory. Pedantically tracking all built
-- files in the Shake databases seems fragile and unnecesarry.
buildPackageDocumentation :: Resources -> PartialTarget -> Rules ()
buildPackageDocumentation _ target @ (PartialTarget stage package) =
let cabalFile = pkgCabalFile package
haddockFile = pkgHaddockFile package
buildPackageDocumentation _ target @ (PartialTarget stage pkg) =
let cabalFile = pkgCabalFile pkg
haddockFile = pkgHaddockFile pkg
in when (stage == Stage1) $ do
haddockFile %> \file -> do
srcs <- interpretPartial target getPackageSources
......@@ -23,7 +23,7 @@ buildPackageDocumentation _ target @ (PartialTarget stage package) =
-- HsColour sources
whenM (specified HsColour) $ do
need [cabalFile]
need [cabalFile, pkgDataFile stage pkg ]
build $ fullTarget target GhcCabalHsColour [cabalFile] []
-- Build Haddock documentation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment