-
-
Notifications
You must be signed in to change notification settings - Fork 389
Using haskell-language-server
without editor integration?
#712
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
Comments
It should be pretty easy to do. You add a method to IdeState to grab all the rules with a given key (very easy since that's the way it's stored), then setup IdeState, and grab the However, my question would be why? Ghcid is rock solid and well tested. It's probably faster with Ghcide, and there are a huge number of Ghci bugs that go unfixed that are mostly fixed in Ghcide. But it's less compatible and more tied to GHC version. If you do want to do it though, happy to give whatever advice is required. |
The main reason is that it will work properly with multiple components, when that's implemented. I think the response time is also quite a bit faster than GHCi? |
I have not benchmarked, but it should be faster, but I don't know whether we are talking 1.1x or 10x faster. I always solve multiple components with a custom |
I started implementing this https://github.com/mpickering/reflex-ghcide |
Sweet! Any chance you can detail how to use it in the README? That it seems worth linking to from ghcide. |
Once it is usable then I will make a PR. At the moment the user interface is very minimal. |
@ndmitchell if you or anyone has time to write up how one might go about doing this, it would be much appreciated :) |
@mitchellwrosen - a global cabal v1 install, different names for every module in the project (using e.g. -main-is for two Not sure it's worth writing up properly though since the global install seems strongly discouraged (which is fine, but it's still how ghc itself thinks of the world, and thus gives way nicer tooling). |
the |
ghcide
without editor integration?haskell-language-server
without editor integration?
It seems the solution is https://github.com/mpickering/simple-language-client If you want to provide a PR to add this project to the docs, feel free to do so. |
I would be interested to use
ghcide
without any editor integration just to get fast error/warning display.Would it be possible to implement some amalgamation of
ghcid
andghcide
? Perhaps a simple mode would just just watch the files in the loaded components and trigger a reload if any of them changed.The text was updated successfully, but these errors were encountered: