haskell-lsp: Haskell library for the Microsoft Language Server Protocol

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.


An implementation of the types, and basic message server to allow language implementors to support the Language Server Protocol for their specific language.

An example of this is for Haskell via the Haskell IDE Engine, at https://github.com//haskell-ide-engine

[Skip to ReadMe]


Change logChangeLog.md
Dependenciesaeson (>=, async, attoparsec, base (>=4.9 && <4.13), bytestring, containers, data-default, directory, filepath, hashable, haskell-lsp, haskell-lsp-types (==0.14.*), hslogger, lens (>=4.15.2), mtl, network-uri, rope-utf16-splay (>=, sorted-list (==0.2.1.*), stm, temporary, text, time, transformers, unordered-containers, vector [details]
CopyrightAlan Zimmerman, 2016-2019
AuthorAlan Zimmerman
Home pagehttps://github.com/alanz/haskell-lsp
Source repositoryhead: git clone https://github.com/alanz/haskell-lsp
UploadedThu Jun 13 00:11:56 UTC 2019 by luke_





Build the lsp-hello demo executable


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees

Readme for haskell-lsp-

[back to package description]

CircleCI Hackage


Haskell library for the Microsoft Language Server Protocol

Warning: this library and its associated ecosystem is under development at the moment. So do not have high expectations, it is not ready for casual use.


To see this library in use you need to install the haskell-ide-engine

git clone https://github.com/haskell/haskell-ide-engine --recursive
cd haskell-ide-engine
stack install

This will put the hie executable in your path.

Then, run the plugin in vscode:

git clone https://github.com/alanz/vscode-hie-server
cd vscode-hie-server
code .

In vscode, press F5 to run the extension in development mode.

You can see a log from hie by doing

tail -F /tmp/hie-vscode.log

There are also facilities on the code to send back language-server-protocol log and show events.

It can also be used with emacs, see https://github.com/emacs-lsp/lsp-haskell

Using the example server

stack install :lsp-hello --flag haskell-lsp:demo

will generate a lsp-hello executable.

Changing the server to be called in the vscode-hie-server plugin from hie to lsp-hello will run the example server instead of hie.

Likewise, changing the executable in lsp-haskell for emacs.

Useful links

Other resource

See #haskell-ide-engine on IRC freenode