Update Cabal to version 3.10.3.0 for GHC-9.6 and GHC-9.8
Summary
At the most user facing level, plugins appear to not work correctly with 9.6/9.8 when using stack
. The issue on that side is tracked https://github.com/commercialhaskell/stack/issues/6251. However, it would appear that the underlying issue is with the Cabal
library. The issue for Cabal
is at https://github.com/haskell/cabal/issues/9375. The fix for this is included in cabal-3.10.3.0
~~, which ghc-9.10 appears to be ahead of~~.
So if I'm understanding the various moving parts all correctly bumping the included Cabal
version for the next 9.6 and 9.8 series releases will fix the issue. As it stands, this is holding some users on 9.4.x.
Steps to reproduce
From the cabal issue, reproducing would appear to be as simple as having a plugin module Foo and then running:
ghc-9.6.3 --abi-hash -fplugin=Foo
Which would result in:
<command line>: Could not find module ‘Foo’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
Expected behavior
The expectation would be to have a hash from the above.
@mpickering I'm tagging you because you commented here: https://github.com/haskell/cabal/issues/9375#issuecomment-1789748616 and almost certainly have more context/understanding than I do on the internal implications of this.