haskell-mode
haskell-mode copied to clipboard
Should use --repl-options for cabal repl in haskell-interactive-mode
Currently GHCi is passed --ghc-option=-ferror-spans for the additional arguments for the cabal repl invocation, but since 3.4 the v2 repl (default) does not have --ghc-option= work reliably, e.g. in https://cabal.readthedocs.io/en/3.4/cabal-commands.html#cabal-v2-repl you can see:
To avoid ghci specific flags from triggering unneeded global rebuilds these flags are now stripped from the internal configuration. As a result
--ghc-optionswill no longer (reliably) work to pass flags to ghci (or other repls). Instead, you should use the new--repl-optionsflag to specify these options to the invoked repl.
Shouldn't the option be changed to --repl-options in haskell-interactive-mode?
Sounds likely, want to fix it locally and submit a PR if it works for you?