-
Notifications
You must be signed in to change notification settings - Fork 701
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
Cabal multi-repl doesn't consider ghc-options in cabal.project #10015
Comments
I put up a fix in #10017 Someone should add your example as a test, thanks for providing a nice minimal reproducer. |
@mpickering thanks for the quick fix, I can confirm it works. I have a new issue: when the ghc-options field contains |
These options are configured into the program by Cabal, so we also need to extract these and put them into the mutli-file. Fixes haskell#10015
These options are configured into the program by Cabal, so we also need to extract these and put them into the mutli-file. Fixes haskell#10015
* Add extra ghc options to multi-repl file These options are configured into the program by Cabal, so we also need to extract these and put them into the mutli-file. Fixes #10015 (cherry picked from commit 539cb7b) * Fix rendering of `-j` option in multi-repl Before this was rendered as.. ``` /run/current-system/sw/bin/ghc --interactive -package-env - -j 'NumJobs (Just 8)' ... ``` Due to this place not being updated when support for semaphores was added. (cherry picked from commit c3708d2) --------- Co-authored-by: Matthew Pickering <matthewtpickering@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
These options are configured into the program by Cabal, so we also need to extract these and put them into the mutli-file. Fixes haskell#10015
Describe the bug
When using cabal with multi-repl feature enabled, cabal doesn't pass
ghc-options
defined in cabal.project either under the specificpackage <package-name>
or underprogram-options
To Reproduce
Steps to reproduce the behavior:
cabal repl all
, notice the error about ExplicitNamespacesTypeFamilies
orExplicitNamespaces
on top of theMyLib
module infoo/src/MyLib.hs
cabal repl all
again and notice it loads fineExpected behavior
A clear and concise description of what you expected to happen.
Multi-repl should consider ghc-options just the same as normal repl, I also think the release should be on hold until this issue is fixed.
System information
cabal
,ghc
versions: 3.11, 9.8.2Additional context
Add any other context about the problem here.
haskell-language-server
as well when used in multi-repl modeThe text was updated successfully, but these errors were encountered: