eagletmt / ghcmod-vim

Happy Haskell programming on Vim, powered by ghc-mod
http://www.vim.org/scripts/script.php?script_id=4473
433 stars 59 forks source link

Support ghc-modi #48

Open darthdeus opened 10 years ago

darthdeus commented 10 years ago

At first I thought this was ghc-mod's fault (kazu-yamamoto/ghc-mod#253), though it was pointed out to me that unlike hdevtools, which runs a background process, ghc-mod doesn't do such thing and instead uses ghc-modi to avoid parsing the sources every time it's invoked.

As it turns out though, this would have to be supported on the plugin side, which is why I'm opening this issue :)

I'm not sure if such thing is even possible with VIM though? As ghc-modi basically works as a repl to which commands are being sent.

If not, I thought that maybe it would make sense to wrap ghc-mod in a way that it would run the interactive shell as a separate process on the background, and sort of make it behave like hdevtools.

eagletmt commented 10 years ago

Yes, I'd like to support ghc-modi.

I'm not sure if such thing is even possible with VIM though? As ghc-modi basically works as a repl to which commands are being sent.

It's possible with vimproc, though the interactive process has to be managed carefully.

denibertovic commented 9 years ago

What's the status on this? Is it waiting for https://github.com/kazu-yamamoto/ghc-mod/issues/253 or?

legrostdg commented 9 years ago

any news on this?

DanielG commented 9 years ago

Just a heads up ghc-modi will be deprecated soonish when I get around to implementing the alternative, probably next summer. If all goes to plan ghc-mod will provide a ghci compatible command line/IPCish interface (which will support code execution) as well as a network based IPC interface that regular ghc-mod will use via a daemon that is started on demand.

So if this would need significant amount of work don't bother ;)

bennofs commented 9 years ago

@DanielG isn't that basically what https://github.com/chrisdone/ghci-ng does? So maybe it would be worth joining efforts?

DanielG commented 9 years ago

I thought so too but Chris had no interest in collaboration when I last asked him.

int-index commented 9 years ago

Using ghc-mod is dead slow. I had to modify this plugin so it doesn't kill ghcmod#make when it takes too long.

mayeranalytics commented 7 years ago

Does this issue have anything to do with the sub-par performance I'm encountering? vim-shorter

liskin commented 7 years ago

See #102 for another attempt to close this issue.