Skip to content
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

Support ghc-modi #48

Open
darthdeus opened this issue May 17, 2014 · 9 comments
Open

Support ghc-modi #48

darthdeus opened this issue May 17, 2014 · 9 comments

Comments

@darthdeus
Copy link

At first I thought this was ghc-mod's fault (DanielG/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
Copy link
Owner

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
Copy link

What's the status on this? Is it waiting for DanielG/ghc-mod#253 or?

@legrostdg
Copy link

any news on this?

@DanielG
Copy link

DanielG commented Dec 29, 2014

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
Copy link

bennofs commented Jan 18, 2015

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

@DanielG
Copy link

DanielG commented Jan 18, 2015

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

@int-index
Copy link

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
Copy link

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

@liskin
Copy link

liskin commented Oct 7, 2016

See #102 for another attempt to close this issue.

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

9 participants