@@ -502,7 +502,13 @@ mkUnregisterLocal tasks dirtyReason localDumpPkgs initialBuildSteps =
502
502
-- This will also add all the deps needed to build the tests / benchmarks. If
503
503
-- @isAllInOne@ is 'True' (the common case), then all of these should have
504
504
-- already been taken care of as part of the build step.
505
- addFinal :: LocalPackage -> Package -> Bool -> Bool -> M ()
505
+ addFinal ::
506
+ LocalPackage
507
+ -> Package
508
+ -> Bool
509
+ -> Bool
510
+ -- ^ Should Haddock documentation be built?
511
+ -> M ()
506
512
addFinal lp package isAllInOne buildHaddocks = do
507
513
depsRes <- addPackageDeps package
508
514
res <- case depsRes of
@@ -760,12 +766,14 @@ installPackage name ps minstalled = do
760
766
pure $ Set. member name (curatorExpectTestFailure curator) ||
761
767
Set. member name (curatorExpectBenchmarkFailure curator)
762
768
763
- resolveDepsAndInstall :: Bool
764
- -> Bool
765
- -> PackageSource
766
- -> Package
767
- -> Maybe Installed
768
- -> M (Either ConstructPlanException AddDepRes )
769
+ resolveDepsAndInstall ::
770
+ Bool
771
+ -> Bool
772
+ -- ^ Should Haddock documentation be built?
773
+ -> PackageSource
774
+ -> Package
775
+ -> Maybe Installed
776
+ -> M (Either ConstructPlanException AddDepRes )
769
777
resolveDepsAndInstall isAllInOne buildHaddocks ps package minstalled = do
770
778
res <- addPackageDeps package
771
779
case res of
@@ -778,15 +786,17 @@ resolveDepsAndInstall isAllInOne buildHaddocks ps package minstalled = do
778
786
-- | Checks if we need to install the given 'Package', given the results
779
787
-- of 'addPackageDeps'. If dependencies are missing, the package is dirty, or
780
788
-- it's not installed, then it needs to be installed.
781
- installPackageGivenDeps :: Bool
782
- -> Bool
783
- -> PackageSource
784
- -> Package
785
- -> Maybe Installed
786
- -> ( Set PackageIdentifier
787
- , Map PackageIdentifier GhcPkgId
788
- , IsMutable )
789
- -> M AddDepRes
789
+ installPackageGivenDeps ::
790
+ Bool
791
+ -> Bool
792
+ -- ^ Should Haddock documentation be built?
793
+ -> PackageSource
794
+ -> Package
795
+ -> Maybe Installed
796
+ -> ( Set PackageIdentifier
797
+ , Map PackageIdentifier GhcPkgId
798
+ , IsMutable )
799
+ -> M AddDepRes
790
800
installPackageGivenDeps isAllInOne buildHaddocks ps package minstalled
791
801
(missing, present, minMutable) = do
792
802
let name = packageName package
@@ -1046,12 +1056,14 @@ addPackageDeps package = do
1046
1056
HasLibraries _ -> True
1047
1057
NoLibraries -> False
1048
1058
1049
- checkDirtiness :: PackageSource
1050
- -> Installed
1051
- -> Package
1052
- -> Map PackageIdentifier GhcPkgId
1053
- -> Bool
1054
- -> M Bool
1059
+ checkDirtiness ::
1060
+ PackageSource
1061
+ -> Installed
1062
+ -> Package
1063
+ -> Map PackageIdentifier GhcPkgId
1064
+ -> Bool
1065
+ -- ^ Is Haddock documentation being built?
1066
+ -> M Bool
1055
1067
checkDirtiness ps installed package present buildHaddocks = do
1056
1068
ctx <- ask
1057
1069
moldOpts <- runRIO ctx $ tryGetFlagCache installed
0 commit comments