Automic VaultAutomic Vault

brew

使用 Homebrew, apk, MacPorts, Nix, pacman, scoop 安装 haskell-language-server

查看 haskell-language-server 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install haskell-language-server

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install haskell-language-server

MacPorts ports tree · devel/haskell-language-server/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add haskell-language-server

Alpine Linux edge package indexes · haskell-language-server · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#haskell-language-server

nixpkgs package indexes · haskell-language-server · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S haskell-language-server

Arch Linux sync databases · haskell-language-server · 来源: geo.mirror.pkgbuild.com

Windows

Scoop已验证 · 92%
scoop install main/haskell-language-server

Scoop official bucket manifest trees · bucket/haskell-language-server.json · 来源: api.github.com

概览

软件包摘要

Integration point for ghcide and haskell-ide-engine. One IDE to rule them all

命令和别名

  • ghcide-bench-9.12
  • ghcide-bench-9.12.3
  • ghcide-bench-9.14
  • ghcide-bench-9.14.1
  • haskell-language-server-9.12
  • haskell-language-server-9.12.3
  • haskell-language-server-9.14
  • haskell-language-server-9.14.1
  • haskell-language-server-wrapper

历史

项目历史与用法

Haskell Language Server is the official Language Server Protocol implementation for Haskell. Its package-manager identity matters because it turns a historically difficult editor-integration story into a single installable tool that editors can discover through the standard LSP model.

The project grew out of the Haskell IDE ecosystem around ghcide, hie-bios, plugins, and the earlier haskell-ide-engine effort. The Homebrew formula description preserves that consolidation story directly: HLS became the integration point for ghcide and haskell-ide-engine rather than another standalone editor-specific tool.

项目历史

The documentation describes HLS as a language server that speaks LSP to editor clients, which lets editors reuse a common protocol for diagnostics, completions, hover information, definition lookup, references, formatting, and related IDE functions. That positioned HLS as infrastructure rather than a single editor extension.

A central technical lineage is ghcide. The HLS component documentation describes ghcide as a library for Haskell IDE tooling, paired with hie-bios for discovering project structure, dependencies, extensions, and build information. HLS packages that foundation with plugins and release engineering so users do not have to assemble the stack manually.

The 1.0.0 changelog framed the release as a celebratory stabilization point, with internal changes, bug fixes, performance work, GHC 8.10.4 support, HIE DB integration for references and symbols, and plugins for import disambiguation, shadowed imports, evaluation, formatting, and tactics. Later changelog entries show the project repeatedly tracking new GHC families and pruning old compiler support.

采用历史

HLS adoption follows the spread of LSP-capable Haskell editing in VS Code, Emacs, Vim/Neovim, and other clients. Its docs emphasize that editor configuration is client-specific while the server side remains the same executable family, which is exactly the distribution shape package managers like Homebrew, Nix, Arch, MacPorts, and Scoop are good at providing.

The package appears on Hackage with a long version series and a broad dependency set around ghcide, hls-plugin-api, hie-bios, hiedb, LSP libraries, formatters, and refactoring tools. That public package record is evidence that HLS became a normal Haskell package ecosystem artifact, not only a GitHub binary release.

Binary distribution is unusually important for HLS because GHC version compatibility is central to user experience. The installation docs instruct users to install the wrapper and the server executables for the GHC versions they work with; Homebrew exposes that shape through versioned executables such as haskell-language-server-wrapper and per-GHC server names.

使用方式

Typical use is indirect: an editor or LSP client launches haskell-language-server-wrapper in a Haskell project, and the wrapper selects an HLS binary compatible with the project compiler. Users then get type diagnostics, completions, hover, code actions, references, formatting integration, Cabal-file assistance, and other plugin-provided features.

Project discovery often depends on hie.yaml, Cabal, Stack, or implicit hie-bios rules. That makes HLS especially sensitive to how a project is built, which is why package users care about the wrapper, the supported-GHC matrix, and the documentation around troubleshooting build cradles.

为什么软件包爱好者会关心

For package nerds, HLS is a stress test of language-tool distribution. It must line up GHC ABIs, plugin versions, Hackage dependencies, native binaries, editor expectations, and project build tools. A package-manager upgrade can materially change editor behavior because it changes the compiler matrix and plugin set.

It also represents a broader packaging pattern: move editor intelligence into a protocol-speaking server, then let editors and operating-system package managers share that server. In Haskell, where compiler versions and build plans are especially specific, that pattern is more demanding than simply shipping one static CLI.

时间线

  • 2020: Public Hackage candidate versions for haskell-language-server appeared, including 0.1.0.0.
  • 2021: The 1.0.0 changelog marked a stabilization point with HIE DB integration, plugin work, and GHC 8.10.4 support.
  • 2023: The 2.x line continued the ghcide/plugin architecture while tracking newer GHC releases.
  • 2026: The 2.14.0.0 package record and changelog show bindists for multiple GHC versions, including GHC 9.14.1 and 9.12.x.

Related projects

  • ghcide supplies core IDE services and is documented by HLS as a library for Haskell IDE tooling.
  • hie-bios discovers project layout and build settings for Haskell tools.
  • haskell-ide-engine is part of the predecessor ecosystem that HLS consolidated.
  • GHC, Cabal, Stack, Hackage, HIE DB, HLint, Ormolu, Fourmolu, and editor LSP clients form the surrounding toolchain.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:server

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
<project-root>/hie.yaml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ghcide-bench-9.12cli全局可执行文件
ghcide-bench-9.12.3cli全局可执行文件
ghcide-bench-9.14cli全局可执行文件
ghcide-bench-9.14.1cli全局可执行文件
haskell-language-server-9.12cli全局可执行文件
haskell-language-server-9.12.3cli全局可执行文件
haskell-language-server-9.14cli全局可执行文件
haskell-language-server-9.14.1cli全局可执行文件
haskell-language-server-wrappercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.14.0.0
管理器更新时间2026-04-27
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/haskell/haskell-language-server

安装元数据

软件包元数据

软件包键brew:haskell-language-server
版本2.14.0.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/haskell-language-server
主页https://github.com/haskell/haskell-language-server
仓库https://github.com/haskell/haskell-language-server
上游文档https://haskell-language-server.readthedocs.io/
许可证Apache-2.0
源码归档https://github.com/haskell/haskell-language-server/releases/download/2.14.0.0/haskell-language-server-2.14.0.0-src.tar.gz
最后更新2026-04-27T10:45:09Z
Pulseupdated
依赖gmp
构建依赖cabal-install, ghc, ghc@9.12
macOS 提供的库libffi, ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项haskell-language-server is built for GHC versions 9.12.3, 9.14.1. You need to provide your own GHC or install one with brew install ghc

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehaskell-language-server
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

haskell-language-server

nix profile install nixpkgs#haskell-language-server
  • normalized package name match
  • 匹配方式:Haskell Language Server
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: haskell-language-server from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
apk95%

haskell-language-server 2.9.0.0-r0

Official Haskell Language Server implementation

https://github.com/haskell/haskell-language-server

sudo apk add haskell-language-server
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: haskell-language-server
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Haskell Language Server
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: haskell-language-server from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
pacman95%

haskell-language-server 2.3.0.0-47

LSP server for GHC

https://github.com/haskell/haskell-language-server#readme

sudo pacman -S haskell-language-server
  • License: Apache-2.0
  • Architecture: x86_64
  • 32 依赖
  • normalized package name match
  • 匹配方式:Haskell Language Server
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: haskell-language-server from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

haskell-language-server

sudo port install haskell-language-server
  • normalized package name match
  • 匹配方式:Haskell Language Server
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/haskell-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/haskell-language-server

scoop install main/haskell-language-server
  • normalized package name match
  • 匹配方式:Haskell Language Server
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/haskell-language-server.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment