A haskell package to build your own Language Server client.
This package is intended for developers of text editors who want to make their text editor compatible with the Language Server Protocol. I have developed this package with plans to integrate it in the Yi Editor.
haskell-lsp-client
This package is intended for developers of text editors who want to make their text editor compatible with the Language Server Protocol.
I have developed this package with plans to integrate it in the Yi editor.
The example client
Contained in this repository is an example client. This example client just runs the Haskell IDE Engine and opens the file specified on the command line. Then it asks the language server for all symbols in the document and prints the result it gets.
To run the example:
- Download and install the Haskell IDE Engine. (make sure
hie
is on your PATH) git clone https://github.com/noughtmare/haskell-lsp-client
cd haskell-lsp-client
stack build
stack exec example-client -- example/Main.hs
On my system it shows something about a capability registration request and that a certain hoogle database is used. You can replace example/Main.hs with any haskell file you would like to check. It reports ghc errors and hlint suggestions and it shows the symbol list.