# Haskell Language Server

> The official Haskell language server (LSP) implementation

Source: https://talira.ai/catalog/haskell-language-server-9ehzmfj4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / language servers](https://talira.ai/categories/developer-tools/language-servers), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: Apache-2.0[^2][^3]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Supports: [LSP](https://talira.ai/standards/lsp.md)[^4]
- Backed by: [The Haskell IDE Team](https://talira.ai/orgs/haskell-ide-team.md)

Haskell Language Server (HLS) is the official Language Server Protocol server for Haskell, giving any LSP editor GHC's errors and warnings, hovers, go to definition and references, completions, formatting, rename, call hierarchy and semantic tokens. Plugins add HLint and Stan hints, code actions (missing pragmas, explicit import lists, missing class methods, adding a dependency to the cabal file) and code lenses that add type signatures or evaluate snippets in comments. It's built on ghcide, its core library for building Haskell IDE tooling on the GHC API, and is usually installed with GHCup.

## Links

- Website: https://haskell-language-server.readthedocs.io/en/latest/
- GitHub: https://github.com/haskell/haskell-language-server
- Docs: https://haskell-language-server.readthedocs.io/en/latest/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/haskell-language-server>[^1]

## Problems it solves

- get autocomplete and type errors for Haskell in VS Code or Neovim
- see the type of a Haskell expression by hovering over it in my editor
- apply HLint suggestions automatically while I edit Haskell
- build my own Haskell IDE tool on top of the GHC API

## Features

- GHC diagnostics, HLint and Stan hints
- hover, go to definition, type definition and implementation, find references
- completions, formatting, rename, call hierarchy, semantic tokens
- code actions and code lenses, including evaluating snippets in comments
- plugin API (hls-plugin-api) for writing new plugins
- ghcide, the core library, usable to build other Haskell IDE tooling

## Trust

Overall: 0.68 out of 1.
Signals: maintenance 1.00, adoption 0.69, momentum 0.47, community 0.99, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 73 commits in the last 90 days
- latest release 2.15.0.0 2 months ago
- 3.0k GitHub stars
- 291 contributors
- accepts sponsorship (Open Collective)
- 50 Homebrew installs in 30 days
- backed by The Haskell IDE Team

## Alternatives

- [Lua Language Server](https://talira.ai/catalog/lua-language-server-ycwn6cx7.md): A language server for Lua with type checking, completion and diagnostics, written in Lua
- [Pyrefly](https://talira.ai/catalog/pyrefly-s1pv2yrr.md): A fast type checker and language server for Python, written in Rust
- [TypeScript Language Server](https://talira.ai/catalog/typescript-language-server-mps2hbkz.md): Language Server Protocol wrapper around TypeScript's tsserver
- [Eclipse JDT Language Server](https://talira.ai/catalog/eclipse-jdt-language-server-nq7yy42f.md): A Java language server that works with any editor speaking the Language Server Protocol
- [Metals](https://talira.ai/catalog/metals-56qr6f98.md): Scala language server with rich IDE features
- [Intelephense](https://talira.ai/catalog/intelephense-1tbqrras.md): Code intelligence for productive PHP developers

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 29 Nov 2026)
[^2]: https://github.com/haskell/haskell-language-server/blob/master/LICENSE (checked 29 Nov 2026)
[^3]: https://github.com/haskell/haskell-language-server/blob/master/haskell-language-server.cabal (checked 29 Nov 2026)
[^4]: https://github.com/haskell/haskell-language-server/blob/master/README.md (checked 29 Nov 2026)
