Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, apt, winget, apk, dnf, MacPorts, Nix, pacman, scoop 安装 haskell-stack

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install haskell-stack

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install stack

MacPorts ports tree · lang/stack/Portfile · 来源: api.github.com

Linux

Debian apt已验证 · 92%
sudo apt install haskell-stack

Debian stable package indexes · haskell-stack · 来源: deb.debian.org

Alpine Linux apk已验证 · 92%
sudo apk add stack

Alpine Linux edge package indexes · stack · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install stack

Fedora Rawhide package metadata · stack · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#stack

nixpkgs package indexes · stack · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S stack

Arch Linux sync databases · stack · 来源: geo.mirror.pkgbuild.com

Windows

Chocolatey已验证 · 92%
choco install haskell-stack

Chocolatey community package catalog · haskell-stack · 来源: community.chocolatey.org

Windows Package Manager已验证 · 92%
winget install --id commercialhaskell.stack -e

Windows Package Manager source index · commercialhaskell.stack · 来源: cdn.winget.microsoft.com

Scoop已验证 · 92%
scoop install main/stack

Scoop official bucket manifest trees · bucket/stack.json · 来源: api.github.com

概览

软件包摘要

Cross-platform program for developing Haskell projects

命令和别名

  • stack

历史

项目历史与用法

Stack is a cross-platform command-line build tool for Haskell projects. It became important by making GHC installation, package snapshots, project templates, builds, tests, scripts, uploads, and reproducible project configuration accessible through one executable.

Its package history is tied to Stackage: Stack made snapshot-based Haskell development a normal workflow, complementing Cabal and Hackage by giving users a resolver-centered way to pin a coherent package set.

项目历史

The Stack changelog records the first public release on 2015-06-09 as the Haskell Tool Stack, beta quality. Within weeks it added index updates, package removal from HTTPS and Git, install support, test-running improvements, stack init, resolver support, Hackage upload support, stack new, stack solver, stack path, stack dot, stack upgrade, and the --stack-yaml flag.

The documentation describes Stack as a program for developing Haskell projects, aimed at new and experienced users, with support across Linux, macOS, and Windows. Its core promise is orchestration: select a GHC, read stack.yaml, build dependencies and project packages, and keep the toolchain reproducible enough for local development and CI.

Over time Stack grew beyond the early snapshot-and-build loop. The changelog shows Docker and Nix integration, script interpreter support, Hackage authentication and upload behavior, Hpack integration, lock files, snapshot listing, Windows/MSYS handling, and later support for newer GHC and Cabal versions.

采用历史

Stack adoption spread through Haskell projects that wanted a consistent command line across operating systems and CI machines. Its docs and Hackage package page both emphasize Linux, macOS, and Windows support, while package managers distribute it as a single stack executable.

The tool became part of the Commercial Haskell and Stackage workflow, but it also stayed in the broader Haskell package ecosystem through Hackage releases, GitHub releases, and distribution by Homebrew, MacPorts, Nix, Arch, Debian, Ubuntu, Chocolatey, Scoop, and winget as reflected in package metadata.

Stack's adoption history also includes coexistence with Cabal. The docs present Cabal, Hackage, and Stackage as related pieces: Cabal defines and builds packages, Hackage hosts packages, Stackage supplies curated snapshots, and Stack coordinates project workflows around those components.

使用方式

Typical package-manager usage begins with installing stack, then running commands such as stack new, stack init, stack setup, stack build, stack test, stack exec, stack ghci, stack run, stack script, stack upload, and stack path inside or around a Haskell project.

A project-level stack.yaml selects a snapshot or compiler and project packages; global and user configuration live under Stack's root/config locations. This split is why the package has both project configuration and user credentials paths: builds are project-specific, but Hackage upload credentials are user-specific.

Stack is also used as a bootstrapper. It can install or select GHC, build a project with the versions implied by its snapshot, and run tools in the resulting environment. That makes it attractive for tutorials and CI scripts because one command can reproduce a build plan that would otherwise require several separate tools.

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

Stack is package-nerd material because it changed the default conversation about Haskell dependency management from only solving constraints to selecting known-good snapshots. That made build reproducibility, resolver names, and curated package sets visible in everyday project files.

It also sits at the intersection of package managers. Homebrew installs Stack as an OS package; Stack then installs or selects GHC and builds Haskell packages from Hackage or snapshots. This layering is both powerful and occasionally surprising, so packagers care about exactly which Stack version is distributed and how it handles GHC, MSYS2, Docker, Nix, Hackage Security, and credentials.

The changelog is a compact history of Haskell ecosystem pressure points: Windows path handling, Hackage authentication changes, Docker behavior, Nix mode, Cabal library compatibility, Stackage server API changes, and evolving GHC support.

时间线

  • 2015-06-09: First public release as the Haskell Tool Stack.
  • 2015-06-23: 0.1.0.0 added stack new, stack solver, stack path, and expanded Haddock support.
  • 2015-06-26: 0.1.1.0 added stack dot, stack upgrade, STACK_EXE, and --stack-yaml.
  • 2017: The 1.x line included Docker-related changes, script interpreter work, Hackage credentials fixes, and Nix integration improvements.
  • 2023: The changelog records Hackage-only releases and Stack 2.x maintenance around snapshots, Docker, and GHC support.
  • 2026: Stack 3.x changelog entries show ongoing work for newer GHC/Cabal, Stackage API changes, Windows MSYS2 defaults, Backpack planning, and Hackage authentication behavior.

Related projects

  • Stackage provides curated snapshot sets that Stack uses as resolvers.
  • Hackage is the package repository Stack reads from and can upload to.
  • Cabal provides package descriptions and build infrastructure beneath many Stack operations.
  • GHC is the compiler Stack installs, selects, and invokes.
  • Hpack, Docker, Nix, MSYS2, and Hackage Security are recurring integration points in Stack's release history.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

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

建议审查

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

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
./stack.yaml$STACK_ROOT/config.yaml/etc/stack/config.yaml$XDG_CONFIG_HOME/stack/config.yaml

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
$STACK_ROOT/upload/credentials.json

可执行文件

已安装的可执行文件

命令类型暴露范围备注
stackcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本3.11.1
管理器更新时间2026-07-22
本地数据OK
上游当前
检测到的最新版本v3.11.1

https://github.com/commercialhaskell/stack

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:haskell-stack
版本3.11.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/haskell-stack
主页https://haskellstack.org/
仓库https://github.com/commercialhaskell/stack
上游文档https://docs.haskellstack.org/
许可证BSD-3-Clause
源码归档https://github.com/commercialhaskell/stack/archive/refs/tags/v3.11.1.tar.gz
最后更新2026-07-22T02:37:49Z
Pulseupdated
依赖gmp
构建依赖cabal-install, ghc
macOS 提供的库libffi
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

haskell-stack 2.15.7-1

The Haskell Tool Stack

https://haskellstack.org

sudo apt install haskell-stack
  • Section: haskell
  • Architecture: amd64
  • 12 依赖
  • normalized package name match
  • 匹配方式:Haskell Stack
Debian stable package indexes · deb.debian.org · Debian stable package indexes: haskell-stack from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

haskell-stack 2.9.3.1-1

The Haskell Tool Stack

https://haskellstack.org

sudo apt install haskell-stack
  • Section: universe/haskell
  • Architecture: amd64
  • 11 依赖
  • normalized package name match
  • 匹配方式:Haskell Stack
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: haskell-stack from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Chocolatey95%

haskell-stack

choco install haskell-stack
  • normalized package name match
  • 匹配方式:Haskell Stack
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: haskell-stack from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','gpg4win-vanilla'
winget95%

commercialhaskell.stack

winget install --id commercialhaskell.stack -e
  • normalized package name match
  • 匹配方式:Haskell Stack
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: commercialhaskell.stack from https://cdn.winget.microsoft.com/cache/source.msix
MacPorts94%

stack

sudo port install stack
  • installed executable or alias match
  • 匹配方式:Stack
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/stack/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Nix92%

stack

nix profile install nixpkgs#stack
  • installed executable or alias match
  • 匹配方式:Stack
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: stack from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
apk92%

stack 3.9.3-r0

The Haskell Tool Stack

https://haskellstack.org/

sudo apk add stack
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: stack
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Stack
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: stack from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

stack-bash-completion 3.9.3-r0

Bash completions for stack

https://haskellstack.org/

sudo apk add stack-bash-completion
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: stack
  • installed executable or alias match
  • 匹配方式:Stack
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: stack-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

stack-fish-completion 3.9.3-r0

Fish completions for stack

https://haskellstack.org/

sudo apk add stack-fish-completion
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: stack
  • installed executable or alias match
  • 匹配方式:Stack
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: stack-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

stack-zsh-completion 3.9.3-r0

Zsh completions for stack

https://haskellstack.org/

sudo apk add stack-zsh-completion
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: stack
  • installed executable or alias match
  • 匹配方式:Stack
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: stack-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf92%

ghc-aeson-warning-parser 0.1.1-41.fc44

Haskell aeson-warning-parser library

https://hackage.haskell.org/package/aeson-warning-parser

sudo dnf install ghc-aeson-warning-parser
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: stack
  • 32 依赖
  • 2 提供
  • installed executable or alias match
  • 匹配方式:Stack
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-aeson-warning-parser from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

ghc-aeson-warning-parser-devel 0.1.1-41.fc44

Haskell aeson-warning-parser library development files

https://haskellstack.org

sudo dnf install ghc-aeson-warning-parser-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: stack
  • 3 依赖
  • 3 提供
  • installed executable or alias match
  • 匹配方式:Stack
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-aeson-warning-parser-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

ghc-aeson-warning-parser-doc 0.1.1-41.fc44

Haskell aeson-warning-parser library documentation

https://haskellstack.org

sudo dnf install ghc-aeson-warning-parser-doc
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: stack
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Stack
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-aeson-warning-parser-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

ghc-aeson-warning-parser-prof 0.1.1-41.fc44

Haskell aeson-warning-parser profiling library

https://haskellstack.org

sudo dnf install ghc-aeson-warning-parser-prof
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: stack
  • 2 依赖
  • 2 提供
  • installed executable or alias match
  • 匹配方式:Stack
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-aeson-warning-parser-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

ghc-casa-client 0.0.3-41.fc44

Haskell casa-client library

https://hackage.haskell.org/package/casa-client

sudo dnf install ghc-casa-client
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: stack
  • 32 依赖
  • 2 提供
  • installed executable or alias match
  • 匹配方式:Stack
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-casa-client from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

ghc-casa-client-devel 0.0.3-41.fc44

Haskell casa-client library development files

https://haskellstack.org

sudo dnf install ghc-casa-client-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: stack
  • 3 依赖
  • 3 提供
  • installed executable or alias match
  • 匹配方式:Stack
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-casa-client-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 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