Skip to content

feat: add haskell-language-server 2.14.0.0#214

Draft
0chroma wants to merge 1 commit into
mainfrom
add/haskell-language-server
Draft

feat: add haskell-language-server 2.14.0.0#214
0chroma wants to merge 1 commit into
mainfrom
add/haskell-language-server

Conversation

@0chroma

@0chroma 0chroma commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Add the Haskell Language Server (HLS) v2.14.0.0 to the package registry, enabling Haskell LSP support for editors like Neovim, VS Code, and Emacs.

Context

HLS is the official Language Server Protocol implementation for Haskell, providing features like go-to-definition, type hover, code actions, and refactoring. It was missing from the registry, blocking Haskell development workflows.

Changes

  • Added packages/haskell-language-server/build.ncl — Build spec sourcing from GitHub tag 2.14.0.0 with automatic extraction
  • Added packages/haskell-language-server/build.sh — Build script using GHC + Cabal with dynamic linking

Key Implementation Details

  • Builds from source using cabal build exe:haskell-language-server (not prebuilt binaries per guidelines)
  • Uses ldd to discover and copy all required shared Haskell libraries at runtime, avoiding static linking issues (Haskell libs aren't PIC-compatible)
  • Network access enabled via needs = { dns = {}, internet = {} } for Cabal dependency index updates
  • All 14 min check checks pass, including standalone version test

Use Cases

  • Haskell development with LSP-enabled editors
  • Type checking and refactoring for Haskell projects
  • Integration with cabal and Stack projects

Testing

# Validate the package spec
min check --packages haskell-language-server

# Build the package
min patched-build haskell-language-server

# Verify the binary works
min add haskell-language-server
haskell-language-server --version

Add package for the Haskell Language Server (HLS), the official LSP
implementation for Haskell. Builds from source using GHC + Cabal with
dynamic linking, copying the binary and all required shared libraries
via ldd dependency resolution.

- Source: GitHub tag 2.14.0.0 with automatic extraction
- Build deps: base, cabal, ghc
- Runtime deps: glibc
- Network access enabled for cabal dependency index updates
- Includes standalone version check test
@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5fe2fdd1-05d8-49f6-8b6c-158cace5eb0b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add/haskell-language-server

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant