-
Notifications
You must be signed in to change notification settings - Fork 340
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
Add support for interaction with stack ghci. #746
Conversation
Add support for interaction with stack ghci.
Thanks. |
Mmh, it seems that |
Thats right. For now, look to the bottom of https://github.com/chrisdone/chrisdone-emacs/blob/master/config/haskell.el I think thats the right approach for haskell-mode, too? |
Has anyone figured out a good way to switch easily between stack and cabal projects? (My emacs-fu is very weak, so it's quite possible that there's a simple and obvious solution that I'm unaware of). When I set |
The only way I've found is to use a .dir-locals.el on an ad-hoc basis, which doesn't feel very nice. I'd settle for a menu when I start a haskell process, really. |
Starting a process already asks a lot of questions and we should strive to
remove all of those.
|
I should have been more specific, because you're obviously right. It's a sane default to not ask too many questions. I guess I just want the option for a menu (because when you switch between cabal sandboxes, nix and stack, there's no good solution currently.) |
I think that the current 'auto' option has been irrevocably spoiled as
there is no way to reliably detect cabal vs stack preference.
Also note that nix can have all three possibilities: nix-ghci, nix-cabal
and nix-stack, so it actually adds yet another dimension to the whole mix.
I wonder if we somehow could get around the whole mess.
|
Auto-detection cannot be 100% reliable, but IMHO it can be pretty good:
|
@peti except that falls through in the case of "this project has |
Add stack ghci support from #744. Also fix a defcustom typo in haskell-process-args-cabal-repl.