-
Notifications
You must be signed in to change notification settings - Fork 841
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 cannot build projects that require Alex with the LTS-7.x resolver #5242
Comments
I guess you need to add |
Adding I should clarify that this worked fine with an older version of Stack circa 2017/2018. I will try to reproduce that successful build; there might have been something about my environment that caused it to succeed back then when it shouldn't have. |
Sure enough, this project does build with Stack 1.1.2. (Unrelated: to build with the older version of Stack I had to create a Setup.hs file with these contents:
It is possible that this is required for modern Stack as well, but the build didn't progress far enough to let me know. Obviously I also had to remove the |
Unfortunately, the "long-term" part of "LTS" has turned out to be a lie. Only 3 years in, and there is now a regression that causes Stack to fail to build Alex and Happy (commercialhaskell/stack#5242). There is no easy fix, so I have upgraded the Stack resolver to 12.26, which seems to work better. I hope that this one is supported longer. As part of this fix, I weakened the version requirements in the Cabal package specification. Everything still works as far as I can tell, but it won't hold forever: LTS-14.x and higher have problems because of the MonadFail changes. Therefore the version specifiers are not a true reflection of the package requirements.
I am closing given the passage of time and that the |
General summary
One of my older projects uses an ancient resolver that no longer seems to work.
Steps to reproduce
Save this as
repro.sh
in an empty folder:Then run it:
Expected
The project should build.
Actual
I am happy to provide more verbose logs if they will be helpful.
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: