Skip to content

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

Open
@createyourpersonalaccount

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions