Closed mpickering closed 10 years ago
I would also love to know this... seconded.
What do you want to do with cabal repl
?
haskell-program-name
is a custom variable of haskell-mode and it specifies the interpreter which runs under Emacs, right?
ghcmod-vim doesn't have a feature to interact with Haskell interpreter. It only uses ghc-mod command.
cabal repl
respects the new cabal sandbox
configurations, while ghci
doesn't (I believe).
I'd like to know whether this is possible too.
I know what cabal repl
does.
I'd like to figure out what is the issue with ghcmod-vim...
ghcmod-vim doesn't use ghci or any other Haskell interpreters at all.
The question is: when ghc-mod is integrated into emacs you are able to change this behavior, how are you able to do the same from inside vim? It isn't a ghcmod-vim issue per se but I felt like this was the most suitable place to ask. The issue is that when using ghc-mod with vim at the moment and you're developing a library, ghc-mod complains about not being able to find the library because it doesn't look in the sandbox. On 10 May 2014 12:00, "Kohei Suzuki" notifications@github.com wrote:
I know what cabal repl does. I'd like to figure out what is the issue with ghcmod-vim... ghcmod-vim doesn't use ghci or any other Haskell interpreters at all.
— Reply to this email directly or view it on GitHubhttps://github.com/eagletmt/ghcmod-vim/issues/44#issuecomment-42738782 .
Opening a REPL within Emacs is NOT a feature of ghc-mod. It's a feature of haskell-mode. haskell-program-name
is a custom variable of haskell-mode.
Elisp maintained in ghc-mod doesn't use any Haskell interpreters.
I won't add REPL feature to ghcmod-vim because ghc-mod doesn't have REPL feature. ghcmod-vim is a plugin for ghc-mod.
when using ghc-mod with vim at the moment and you're developing a library, ghc-mod complains about not being able to find the library because it doesn't look in the sandbox.
That is the real issue! :v: It has no relation with cabal repl
.
ghc-mod should automatically discover the sandbox and look in it.
Are you using the latest ghcmod-vim and ghc-mod?
ghc-mod < 4.0.0 has sandbox problem with project which has sandbox but doesn't have cabal file.
It's been working fine for me. I have installed packages that is sandbox-only, and ghc-mod
has not complained about it, and can deduce the types correctly etc.
Probably updating to the latest ghc-mod
will help.
Hey guys,
Is there a way to easily do this? Literature suggests that in emacs you simply use the command
I can't figure anything similar for vim.