[WIP] Use single session per stack project #1174
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have a stack project with a few local packages that I work on together. I found that haskell-mode would create a
stack ghci
process/buffer for each project, and each one would load all the projects, as stack ghci does.This change defaults each module under the stack project to the same ghci instance.
What do you think? I haven't had any problems with it, and it saves a ton of memory for ghci processes, as well as simplifying work on multiple packages.
WIP because the buffer name is inconsistent with cabal, but using the package name on its own seems kind of fragile too... Maybe it should be the full path to the stack.yaml / .cabal with some sort of prefix?
TODO: share the file logic with (haskell-process-type)