Skip to content

stack ghci option to switch ghci command and thus use ghci-ng #1024

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

Closed
rrnewton opened this issue Sep 21, 2015 · 2 comments
Closed

stack ghci option to switch ghci command and thus use ghci-ng #1024

rrnewton opened this issue Sep 21, 2015 · 2 comments

Comments

@rrnewton
Copy link
Contributor

The new stack integration in haskell-mode is great, but the "get type at point" command can't work currently, see: haskell/haskell-mode#889

The problem is it depends on some of the ghci-ng extensions, and there's currently no way to tell stack to use ghci-ng. stack ghci takes an optional --with-ghc option, but that expects a full command-line replacement for ghc, which ghci-ng is not.

What is the right thing here?

@chrisdone
Copy link
Member

--with-ghc is the right thing here. It's what you would use with cabal repl --with-ghc to use ghci-ng. It's what I use to use ghci-ng with stack. In my stack projects I have this in my .dir-locals.el:

((haskell-mode
  . ((haskell-process-type . ghci)
     (haskell-process-path-ghci . "stack")
     (haskell-process-args-ghci . ("ghci" "--with-ghc" "ghci-ng")))))

@chrisdone
Copy link
Member

Think this can be moved back to the haskell-mode discussion.

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

No branches or pull requests

2 participants