HookedBuildInfo can't update test suite build configuration
Open
Cabal: other
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**preBuild** hook allows to run some custom actions and update build configuration depending on it's results. In my case it was code generation. The problem is, it was test suite which needed generated modules, and **HookedBuildInfo** have only fields for updates to library and executables. Without update, test suite still builds, but cabal complains about generated not being added to _other-modules_ list.
It would be great to be able to update configurations for all targets, including test suites.
Contributor guide
Assessment
This issue has not been assessed yet.