Deprecated

haskell-lsp-client

A haskell package to build your own Language Server client.

https://github.com/noughtmare/haskell-lsp-client#readme

Version on this page:1.0.0.0
LTS Haskell 11.22:1.0.0.1
Stackage Nightly 2018-03-12:1.0.0.1
Latest on Hackage:1.0.0.1

See all snapshots haskell-lsp-client appears in

GPL-2.0-only licensed by Jaro Reinders
Maintained by [email protected]
This version can be pinned in stack with:haskell-lsp-client-1.0.0.0@sha256:00fc770fb59dcf1898e711740532b30fb6553caa261e0f81f3fe2d7e0c432589,1512

Module documentation for 1.0.0.0

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 waits a second to let HIE check the file for errors and such.

To run the example:

  1. Download and install the Haskell IDE Engine. (make sure hie is on your PATH)
  2. git clone https://github.com/noughtmare/haskell-lsp-client
  3. cd haskell-lsp-client
  4. stack build
  5. 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.