runghc doesn't respect -pgmF
Summary
runghc
doesn't seem to support registering a preprocessor. Is this expected?
Steps to reproduce
# fails as expected with "could not execute: foo"
ghc AnyFile.hs -F -pgmF=foo
# tries to compile without checking foo
runghc AnyFile.hs -- -F -pgmF=foo
Expected behavior
It should work. If this is intentional, the docs for runghc should be updated to include the differences with ghc. The documentation currently seems to indicate that flags are passed directly to GHC (and should thus be respected).
Environment
- GHC version used: 9.2.3
Optional:
- Operating System:
- System Architecture: