Commit cdf208c3 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Generate only one rule for Haddock (Stage1).

parent 3039df42
......@@ -10,10 +10,10 @@ 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 _ pkg) =
buildPackageDocumentation _ target @ (PartialTarget stage pkg) =
let cabalFile = pkgCabalFile pkg
haddockFile = pkgHaddockFile pkg
in do
in when (stage == Stage1) $ do
haddockFile %> \file -> do
whenM (specified HsColour) $ do
need [cabalFile]
......
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