General summary/comments (optional)
I have an executable defined in my package.yaml but no library. When I run stack build --haddock-executables as some docs seems to suggest I can, it just compiles my executable but doesn't mention anything about docs, as it would when successfully running stack haddock in a project with a library.
Using:
- Stack 3.7.1
- GHC 9.10.3
- Cabal 3.16.0.0
Steps to reproduce
stack new --snapshot lts-24.19 reproduce
- Remove from the
package.yaml the library and tests top-level entries and the dependencies of the executable
- Remove the import from
app/Main.hs and redefine main = return ()
stack build --haddock-executables
Expected
The executable should build and a message should appear stating the path to a generated index.html.
Actual
Only the executable builds.