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

True multi package support in "stack ghci" #3310

Open
mgsloan opened this issue Aug 3, 2017 · 3 comments
Open

True multi package support in "stack ghci" #3310

mgsloan opened this issue Aug 3, 2017 · 3 comments

Comments

@mgsloan
Copy link
Contributor

mgsloan commented Aug 3, 2017

This is just a stub issue to keep track of the goal of having "stack ghci" properly load packages, including switching cwd when loading modules (for TH file loading). I am removing the support for using intero's :cd-ghc command with multiple packages, because it doesn't always work, doesn't work on reload, and was generally a regression in behavior for multi-package projects - see #3309

A proper solution to this requires an implementation in ghci / intero. Some relevant issues:

https://ghc.haskell.org/trac/ghc/ticket/10827
https://github.com/commercialhaskell/intero/issues/41
https://github.com/commercialhaskell/intero/issues/39

@Ericson2314
Copy link

ghc-proposals/ghc-proposals#263 There's a proposal this (and WIP PR for the first step of this).

@qrilka qrilka changed the title True multi package support in "stack ghci --with-ghc=intero" True multi package support in "stack ghci" Dec 3, 2020
@qrilka
Copy link
Contributor

qrilka commented Dec 3, 2020

I've removed intero from the title as I suppose there is no need to take it into account as the project has reached its end of life - https://github.com/chrisdone/intero/blob/master/README.md

From the other side there were 2 GSoC projects and some MRs to GHC aiming to resolve the problem of loading multiple packages into GHCi, the main entry point looks to be the wiki page Multi Session GHC API

@flip111
Copy link
Contributor

flip111 commented Feb 25, 2023

This might be possible now as https://gitlab.haskell.org/ghc/ghc/-/issues/10827 got resolved through https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6805?commit_id=fd42ab5fa1df847a6b595dfe4b63d9c7eecbf400

Commit fd42ab5fa1df847a6b595dfe4b63d9c7eecbf400 is available in the following git tags (as of this moment):

  • ghc-9.4.1-alpha1
  • ghc-9.4.1-alpha2
  • ghc-9.4.1-alpha3
  • ghc-9.4.1-rc1
  • ghc-9.4.1-release
  • ghc-9.4.2-release
  • ghc-9.4.3-release
  • ghc-9.4.4-release
  • ghc-9.5-start
  • ghc-9.6.1-alpha2
  • ghc-9.6.1-alpha3
  • ghc-9.7-start

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

4 participants