Skip to content
forked from haskell/lsp

Haskell library for the Microsoft Language Server Protocol

License

Notifications You must be signed in to change notification settings

Friede80/haskell-lsp

 
 

Repository files navigation

CircleCI Hackage

haskell-lsp

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.

Hacking

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

git clone https://github.com/haskell/haskell-ide-engine
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

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

About

Haskell library for the Microsoft Language Server Protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%