> stack new foo
> cd foo
> stack haddock --haddock-for-hackage --only-dependencies
...\foo\.stack-work\dist\ab060f89\foo-0.1.0.0-docs.tar.gz: withBinaryFile: does not exist (No such file or directory)
@pbrisbin, this should be fixed in the master branch version of Stack. If you do not use GHCup to manage versions of Stack: stack upgrade --source-only --git.
Motivation: @pbrisbin's https://github.com/commercialhaskell/stack/issues/6270#issuecomment-1997854011
Example: