Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix final printed output of 'stack haddock' #6275

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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