I'm wondering if there's a problem with this idea. I'd like to enable some executables/tests only when --ghcjs is used, for example. But currently this is not allowed:
if impl(ghcjs)
executable ...
build-depends: ...
How hard would it be to implement this? Are there any problems with this idea?