-
Notifications
You must be signed in to change notification settings - Fork 843
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 fails with Cabal-3.11.0.0
(GHC >= 9.10)
#6540
Comments
Haddocks for
-- | Runs 'componentInitialBuildSteps' on every configured component.
initialBuildSteps :: FilePath -- ^"dist" prefix
-> PackageDescription -- ^mostly information from the .cabal file
-> LocalBuildInfo -- ^Configuration information
-> Verbosity -- ^The verbosity to use
-> IO ()
initialBuildSteps distPref pkg_descr lbi verbosity =
withAllComponentsInBuildOrder pkg_descr lbi $ \_comp clbi ->
componentInitialBuildSteps distPref pkg_descr lbi clbi verbosity |
The history:
What Stack is doing is this: before using Stack introduced this to cause Cabal to create the autogenerated files for every configured component, without building everything else, making |
Related question: haskellfoundation/tech-proposals#60 (comment) |
Re #6540 Temporarily work around Cabal-3.11.0.0 in StackSetupShim.hs
It is confusing and depressing that Cabal invests little to no energy to understand whether they're breaking other main downstream users. Did you open an issue at Cabal? |
@hasufell, the corresponding Cabal issue is haskell/cabal#9856. |
There is now a temporary workaround in Stack's |
Also accommodates Cabal >= 1.24 and < 2.2 (unlike the current master branch version of Stack).
Stack 2.15.7 is required to use GHC 9.10.1, as detailed in the following issues: * commercialhaskell/stack#6540 * haskell/cabal#9856
GHC 9.10.0.20240328 is available (Alpha 2, first alpha for Windows). However
stack build
with:fails with (extract, reformatted for clarity):
The text was updated successfully, but these errors were encountered: