@@ -144,7 +144,7 @@ generateHpcReport pkgDir package tests = do
144
144
Just includeNames -> " --include" : intersperse " --include" (map (\ n -> n ++ " :" ) includeNames)
145
145
Nothing -> []
146
146
mreportPath <- generateHpcReportInternal tixSrc reportDir report extraArgs extraArgs
147
- forM_ mreportPath (displayReportPath report . pretty)
147
+ forM_ mreportPath (displayReportPath " The " report . pretty)
148
148
149
149
generateHpcReportInternal :: HasEnvConfig env
150
150
=> Path Abs File -> Path Abs Dir -> Text -> [String ] -> [String ]
@@ -273,7 +273,7 @@ generateHpcReportForTargets opts tixFiles targetNames = do
273
273
then do
274
274
prettyInfo $ " Opening" <+> pretty reportPath <+> " in the browser."
275
275
void $ liftIO $ openBrowser (toFilePath reportPath)
276
- else displayReportPath report (pretty reportPath)
276
+ else displayReportPath " The " report (pretty reportPath)
277
277
278
278
generateHpcUnifiedReport :: HasEnvConfig env => RIO env ()
279
279
generateHpcUnifiedReport = do
@@ -297,7 +297,7 @@ generateHpcUnifiedReport = do
297
297
else do
298
298
let report = " unified report"
299
299
mreportPath <- generateUnionReport report reportDir tixFiles
300
- forM_ mreportPath (displayReportPath report . pretty)
300
+ forM_ mreportPath (displayReportPath " The " report . pretty)
301
301
302
302
generateUnionReport :: HasEnvConfig env
303
303
=> Text -> Path Abs Dir -> [Path Abs File ]
@@ -386,8 +386,8 @@ generateHpcMarkupIndex = do
386
386
" </tbody></table>" ) <>
387
387
" </body></html>"
388
388
unless (null rows) $
389
- logInfo $ " \n An index of the generated HTML coverage reports is available at " <>
390
- fromString (toFilePath outputFile)
389
+ displayReportPath " \n An" " index of the generated HTML coverage reports"
390
+ (pretty outputFile)
391
391
392
392
generateHpcErrorReport :: MonadIO m => Path Abs Dir -> Utf8Builder -> m ()
393
393
generateHpcErrorReport dir err = do
@@ -478,9 +478,10 @@ findPackageFieldForBuiltPackage pkgDir pkgId internalLibs field = do
478
478
T. pack (toFilePath inplaceDir) <> " . Maybe try 'stack clean' on this package?"
479
479
480
480
displayReportPath :: (HasTerm env )
481
- => Text -> StyleDoc -> RIO env ()
482
- displayReportPath report reportPath =
483
- prettyInfo $ " The" <+> fromString (T. unpack report) <+> " is available at" <+> reportPath
481
+ => StyleDoc -> Text -> StyleDoc -> RIO env ()
482
+ displayReportPath prefix report reportPath =
483
+ prettyInfo $ prefix <+> fromString (T. unpack report) <+>
484
+ " is available at" <+> reportPath
484
485
485
486
findExtraTixFiles :: HasEnvConfig env => RIO env [Path Abs File ]
486
487
findExtraTixFiles = do
0 commit comments