Describe the bug
In a project with a build-type: Hooks, changes to the SetupHooks.hs module do not cause it to be recompiled, and therefore the changed SetupHooks.hs is not used when rebuilding or reconfiguring the package it belongs to.
To Reproduce
Steps to reproduce the behavior:
The second cabal build does not recompile SetupHooks.hs
Expected behavior
Changes to SetupHooks.hs should be detected so that it can be recompiled before configuring and compiling the rest of the packages
System information
- OS: Ubuntu 22.04
- GHC: ghc-9.6.7
- cabal: cabal-3.14.2.0 or cabal-3.16.0.0