haskell-mode icon indicating copy to clipboard operation
haskell-mode copied to clipboard

Should use --repl-options for cabal repl in haskell-interactive-mode

Open createyourpersonalaccount opened this issue 9 months ago • 1 comments

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-options will no longer (reliably) work to pass flags to ghci (or other repls). Instead, you should use the new --repl-options flag 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?

purcell avatar Feb 14 '25 13:02 purcell