@@ -196,7 +196,7 @@ getConfigCache ee task installedMap enableTest enableBench = do
196196 TTLocalMutable lp ->
197197 Set. map (encodeUtf8 . renderComponent) lp. components
198198 TTRemotePackage {} -> Set. empty
199- , haddock = task. buildHaddock
199+ , haddock = task. buildHaddocks
200200 , pkgSrc = task. cachePkgSrc
201201 , pathEnvVar = ee. pathEnvVar
202202 }
@@ -213,9 +213,9 @@ ensureConfig :: HasEnvConfig env
213213 -> Path Abs File -- ^ Cabal file
214214 -> Task
215215 -> RIO env Bool
216- ensureConfig newConfigCache pkgDir buildOpts announce cabal cabalfp task = do
216+ ensureConfig newConfigCache pkgDir buildOpts announce cabal cabalFP task = do
217217 newCabalMod <-
218- liftIO $ modificationTime <$> getFileStatus (toFilePath cabalfp )
218+ liftIO $ modificationTime <$> getFileStatus (toFilePath cabalFP )
219219 setupConfigfp <- setupConfigFromDir pkgDir
220220 let getNewSetupConfigMod =
221221 liftIO $ either (const Nothing ) (Just . modificationTime) <$>
@@ -381,7 +381,7 @@ singleBuild
381381 pkgId = taskProvides task
382382 PackageIdentifier pname _ = pkgId
383383 doHaddock curator package =
384- task. buildHaddock
384+ task. buildHaddocks
385385 && not isFinalBuild
386386 -- Works around haddock failing on bytestring-builder since it has no
387387 -- modules when bytestring is new enough.
@@ -417,7 +417,7 @@ singleBuild
417417
418418 realConfigAndBuild cache mcurator allDepsMap =
419419 withSingleContext ac ee task. taskType allDepsMap Nothing $
420- \ package cabalfp pkgDir cabal0 announce _outputType -> do
420+ \ package cabalFP pkgDir cabal0 announce _outputType -> do
421421 let cabal = cabal0 CloseOnException
422422 executableBuildStatuses <- getExecutableBuildStatuses package pkgDir
423423 when ( not (cabalIsSatisfied executableBuildStatuses)
@@ -440,7 +440,7 @@ singleBuild
440440 )
441441 )
442442 cabal
443- cabalfp
443+ cabalFP
444444 task
445445 let installedMapHasThisPkg :: Bool
446446 installedMapHasThisPkg =
@@ -506,7 +506,7 @@ singleBuild
506506 TTLocalMutable lp -> do
507507 warnings <- checkForUnlistedFiles task. taskType pkgDir
508508 -- TODO: Perhaps only emit these warnings for non extra-dep?
509- pure (Just (lp. cabalFile , warnings))
509+ pure (Just (lp. cabalFP , warnings))
510510 _ -> pure Nothing
511511 -- NOTE: once
512512 -- https://github.com/commercialhaskell/stack/issues/2649
@@ -522,11 +522,11 @@ singleBuild
522522 (style Good . fromString . C. display)
523523 modules
524524 )
525- forM_ mlocalWarnings $ \ (cabalfp , warnings) ->
525+ forM_ mlocalWarnings $ \ (cabalFP , warnings) ->
526526 unless (null warnings) $ prettyWarn $
527527 flow " The following modules should be added to \
528528 \exposed-modules or other-modules in" <+>
529- pretty cabalfp
529+ pretty cabalFP
530530 <> " :"
531531 <> line
532532 <> indent 4 ( mconcat
@@ -904,7 +904,7 @@ checkForUnlistedFiles (TTLocalMutable lp) pkgDir = do
904904 (addBuildCache,warnings) <-
905905 addUnlistedToBuildCache
906906 lp. package
907- lp. cabalFile
907+ lp. cabalFP
908908 lp. components
909909 caches
910910 forM_ (Map. toList addBuildCache) $ \ (component, newToCache) -> do
0 commit comments