haskell / lsp

Haskell library for the Microsoft Language Server Protocol
366 stars 92 forks source link

Confusion with https://hackage.haskell.org/package/haskell-lsp #432

Closed aboeglin closed 2 years ago

aboeglin commented 2 years ago

Hey there,

I'm getting pretty confused between stackage package haskell-lsp linking to this repository as nothing seems to match, versions are miles away, modules are different, etc. Is this another library or one was dropped in favor of the other?

Thanks!

jhrcek commented 2 years ago

This repository currenlty hosts the source code for 2 packages: https://hackage.haskell.org/package/lsp and https://hackage.haskell.org/package/lsp-types

This repository used to provide sources for haskell-lsp in the past, which is historical predecessor of lsp/lsp-types. See this commit from 2020 when the package was renamed: https://github.com/haskell/lsp/commit/9c7fbaba70c713327a26009e4effdb3145f513f5

I believe it was renamed because it is no (longer) haskell specific. It can be used to implement language server for other languages. E.g. dhall language server is also based on it https://hackage.haskell.org/package/dhall-lsp-server

aboeglin commented 2 years ago

I see, so that’s definitely the one that I should be using right? haskell-lsp is then deprecated? What’s confusing is that API and versioning seems very much different, the commit you linked seems to clarify that.

michaelpj commented 2 years ago

haskell-lsp is the predecessor of these packages, yes, and is quite old.

michaelpj commented 2 years ago

It says right at the top of the haskell-lsp page:

Deprecated. in favor of lsp