Skip to content

Commit

Permalink
Merge pull request #6275 from ocramz/haddock-results-easy-copypaste-#…
Browse files Browse the repository at this point in the history
…6274

fix final printed output of 'stack haddock'
  • Loading branch information
mpilgrem authored Oct 6, 2023
2 parents 1528fd3 + f6ea88f commit a70ff60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Other enhancements:

* Add flag `--no-init` to Stack's `new` command to skip the initialisation of
the newly-created project for use with Stack.
* The HTML file paths produced at the end of `stack haddock` are printed on
separate lines and without a trailing dot.

Bug fixes:

Expand Down
6 changes: 4 additions & 2 deletions src/Stack/Build/Haddock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ generateHaddockIndex descr bco dumpPackages docRelFP destDir = do
[ flow "Updating Haddock index for"
, style Current (fromString $ T.unpack descr)
, "in"
, pretty destIndexFile <> "."
, "\n"
, pretty destIndexFile
]
liftIO (mapM_ copyPkgDocs interfaceOpts)
haddockExeName <- view $ compilerPathsL.to (toFilePath . cpHaddock)
Expand All @@ -237,7 +238,8 @@ generateHaddockIndex descr bco dumpPackages docRelFP destDir = do
[ flow "Haddock index for"
, style Current (fromString $ T.unpack descr)
, flow "already up to date at"
, pretty destIndexFile <> "."
, "\n"
, pretty destIndexFile
]
where
toInterfaceOpt ::
Expand Down

0 comments on commit a70ff60

Please sign in to comment.