haskell / haskell/cabal

HookedBuildInfo can't update test suite build configuration

Open
#2,932 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.