Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--repl-multi-file doesn't seem to play nice with older versions of GHC #10209

Open
sol opened this issue Jul 18, 2024 · 0 comments
Open

--repl-multi-file doesn't seem to play nice with older versions of GHC #10209

sol opened this issue Jul 18, 2024 · 0 comments

Comments

@sol
Copy link
Member

sol commented Jul 18, 2024

Describe the bug

I am trying to use --repl-multi-file to simplify cabal-doctest (sol/doctest#428) and make it more robust.

The documentation of --repl-multi-file states:

Write repl options to this directory rather than starting repl mode

Given this, I would assume that

$ cabal repl -w $GHC

and

$ cabal repl --repl-multi-file ./tmp -w $GHC
$ $GHC --interactive `cat ./tmp/*-inplace`

are essentially equivalent.

However, this doesn't seem to be the case. While the earlier works for a wide range of GHC versions, the later does not work with versions of GHC older than 9.4.*.

To Reproduce

$ git clone https://github.com/sol/markdown-unlit && cd markdown-unlit
$ GHC=ghc-9.2.8
$ cabal repl -w $GHC
$ cabal repl --repl-multi-file . --keep-temp-files -w $GHC
$ $GHC --interactive `cat markdown-unlit-0.6.0-inplace`
...
ghc: unrecognised flag: -this-package-name
...

Expected behavior

$ cabal repl -w $GHC

and

$ cabal repl --repl-multi-file ./tmp -w $GHC
$ $GHC --interactive `cat ./tmp/*-inplace`

behave the same, at least in a none-multi-repl scenario.

System information

cabal-install-3.12.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant