Skip to main content

Cabal/Stack initialBuildSteps Breakage

Both GHCup and Stack have now been configured to provide GHC 9.10.1, which was released last week. Unfortunately, Stack fails due to a breaking Cabal API change, reporting that variable initialBuildSteps is not in scope.

This problem was caught more than a month ago and described in a Stack issue and then in a Cabal issue. On the Stack side, a workaround that recreates initialBuildSteps was added. On the Cabal side, initialBuildSteps was reinstated and marked as deprecated. The problem should be fixed once the newer versions of these build tools are used.

GHC 9.10.1 requires cabal-install version 3.10.2.0 or later. I am generally using cabal-install version 3.10.3.0, which is marked as the recommended version by GHCup, and I get the failure with this version as well. Note that Cabal (the library) version 3.12.0.0 was released last week as well, but the corresponding (cabal-install) CLI has not been released yet.

Stack version 2.15.7 was released very recently, and the changelog indicates that it resolves this issue. I am now waiting until this version is made available via GHCup to test further.

Author

Travis Cardwell

Published

Tags
Related Blog Entries