Try haskell-ide-engine on GHC!
sgraf1337 at gmail.com
Fri Jul 26 09:36:39 UTC 2019
What can I say, after few hours of on and off tinkering I got it to work!
The hover information is incredibly helpful, as is jump to definition. It
works even in modules with type and name errors!
The error information not so much (yet), at least not compared to the
shorter feedback loop of using ghcid.
Haven't used completions in anger yet, but it works quite well when fooling
around with it.
Great work, Zubin and Matthew! :)
As to my setup: I'm using VSCode Remote, so the language server will run on
my build VM which VSCode communicates with via SSH.
I'm using nix+home-manager to manage my configuration over there, so I had
to wrap the hie executable with the following script:
#! /usr/bin/env bash
nix-shell --pure /path/to/ghc.nix/ --run
Also the shellHook echo output from ghc.nix confuses the language server
protocol, so be sure to delete those 4 lines from ghc.nix/default.nix.
It takes quite a while to initialise the first time around. Be sure to look
at the output of the alanz.vscode-hie-server extension to see if there's
any progress being made.
Can only encourage you to try this out!
Am Do., 25. Juli 2019 um 12:21 Uhr schrieb Matthew Pickering <
matthewtpickering at gmail.com>:
> Hi all,
> As some of you know I have been working on getting haskell-ide-engine
> working on GHC for the last few months. Perhaps now the branch is in a
> usable state where people can try it and report issues. All the basic
> features such as, hover, completion, error reporting, go to definition
> etc should work well. I suspect this will be enough for most
> I have compiled a list of instructions about how to try out the branch.
> In the last few weeks Zubin has been a great help finishing some parts
> of the patch that I lost steam for and given it a much better chance
> of getting merged into the main repo before the end of the year.
> ghc-devs mailing list
> ghc-devs at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs