haskell-lsp-client: A haskell package to build your own Language Server client.

[ deprecated, development, gpl, language, library, program, protocol ] [ Propose Tags ]
Deprecated

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.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

  • No current members of group

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0.0, 1.0.0.1
Dependencies aeson, base (>=4.7 && <5), bytestring, containers, directory, haskell-lsp (>=0.2.0.1), haskell-lsp-client, lens, process, text, unix, Win32 [details]
License GPL-2.0-only
Copyright 2017 Jaro Reinders
Author Jaro Reinders
Maintainer jaro.reinders@gmail.com
Category Language, Protocol, Development
Home page https://github.com/noughtmare/haskell-lsp-client#readme
Uploaded by JaroReinders at 2017-12-29T10:19:20Z
Distributions
Executables example-client
Downloads 1488 total (6 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-12-29 [all 1 reports]

Readme for haskell-lsp-client-1.0.0.1

[back to package description]

haskell-lsp-client

Hackage

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:

  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 and it shows the symbol list.