A bug which I introduced into Cabal-3.14 means that modules belonging to executables are built in all the configured library ways.
When building an executable, the Haskell modules need to be built
- For the final link way
- For the build way of the compiler if TH is enabled
At the moment they may be built for vanilla, dynamic and profiling. Even if the final executable we want to link statically.
I have a patch and test which fixes this.