-
Notifications
You must be signed in to change notification settings - Fork 842
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
stack haddock
failure with GHC 9.2.2
#5694
Comments
I have a similar problem with resolver
For example, for
In case it is relevant,
and
However, if I switch to resolver |
Experimenting further with my own problem (now with resolver However, if I delete that snapshot and start again with
Stack also outputs:
but at the end, the only thing in |
I am experiencing the same problem using |
This may be a problem with the |
General summary/comments
(Not sure this is a stack issue, so do let me know if it sounds like I should be asking this elsewhere!)
I'm trying to bump an existing project to GHC 9.2.2 and it builds fine but the haddock generation fails with
I've played around with removing different dependencies in a test project and there are some rare cases where it doesn't happen (with only
text
as a dependency for example), but in the majority of cases the same error occurs, sometimes citing a different package as the issue (most of the time it'sDiff
, but i've seenQuickCheck
too for example). These need not be direct dependencies.Using the same resolver but
compiler: ghc-9.2.1
everything works just fine.Any ideas why this might be happening?
Steps to reproduce
stack new testproj
resolver: nightly-2022-03-24
in stack.yamlDiff
to the dependencies in package.yamlstack haddock
.Expected
Successfully builds Haddock docs.
Actual
Haddock reports an internal error about the doc-index.json for a dependency (in this case Diff) not existing and fails.
Stack version
Method of installation
For additional context, this is in WSL2 with Ubuntu on a Windows 10 host.
The text was updated successfully, but these errors were encountered: