# haskell-stack を Homebrew, chocolatey, apt, winget, apk, dnf, MacPorts, Nix, pacman, scoop でインストール

haskell-stack のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:haskell-stack
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install haskell-stack
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stack
```

  証拠: MacPorts ports tree: lang/stack/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install haskell-stack
```

  証拠: Debian stable package indexes: haskell-stack from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- apk (92%):

```sh
sudo apk add stack
```

  証拠: Alpine Linux edge package indexes: stack from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install stack
```

  証拠: Fedora Rawhide package metadata: stack from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#stack
```

  証拠: nixpkgs package indexes: stack from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S stack
```

  証拠: Arch Linux sync databases: stack from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Chocolatey (92%):

```sh
choco install haskell-stack
```

  証拠: Chocolatey community package catalog: haskell-stack from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','handbrake.install'

- winget (92%):

```sh
winget install --id commercialhaskell.stack -e
```

  証拠: Windows Package Manager source index: commercialhaskell.stack from https://cdn.winget.microsoft.com/cache/source.msix

- Scoop (92%):

```sh
scoop install main/stack
```

  証拠: Scoop official bucket manifest trees: bucket/stack.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:haskell-stack
- **パッケージマネージャ:** Homebrew
- **バージョン:** 3.11.1
- **ソース概要:** Cross-platform program for developing Haskell projects
- **ホームページ:** <https://haskellstack.org/>
- **リポジトリ:** <https://github.com/commercialhaskell/stack>
- **最終更新:** 2026-07-22T02:37:49Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- stack (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 3.11.1
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://docs.haskellstack.org/>
- <https://docs.haskellstack.org/en/stable/ChangeLog/>
- <https://docs.haskellstack.org/en/stable/tutorial/>
- <https://formulae.brew.sh/formula/haskell-stack>
- <https://github.com/commercialhaskell/stack>
- <https://hackage.haskell.org/package/stack>
- <https://raw.githubusercontent.com/commercialhaskell/stack/master/ChangeLog.md>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## 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

- Unix: ./stack.yaml, $STACK_ROOT/config.yaml, /etc/stack/config.yaml, $XDG_CONFIG_HOME/stack/config.yaml

## Credential files

- Unix: $STACK_ROOT/upload/credentials.json
## 他のパッケージマネージャ記録

- Debian apt - haskell-stack - 2.15.7-1: normalized package name match | Debian stable package indexes: haskell-stack from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | The Haskell Tool Stack | https://haskellstack.org
- Ubuntu apt - haskell-stack - 2.9.3.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: haskell-stack from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | The Haskell Tool Stack | https://haskellstack.org
- Chocolatey - haskell-stack: normalized package name match | Chocolatey community package catalog: haskell-stack from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','handbrake.install'
- winget - commercialhaskell.stack: normalized package name match | Windows Package Manager source index: commercialhaskell.stack from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - stack: installed executable or alias match | MacPorts ports tree: lang/stack/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - stack: installed executable or alias match | nixpkgs package indexes: stack from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - stack - 3.11.1-r1: installed executable or alias match | Alpine Linux edge package indexes: stack from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The Haskell Tool Stack | https://haskellstack.org/
- apk - stack-bash-completion - 3.11.1-r1: installed executable or alias match | Alpine Linux edge package indexes: stack-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for stack | https://haskellstack.org/
- apk - stack-fish-completion - 3.11.1-r1: installed executable or alias match | Alpine Linux edge package indexes: stack-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for stack | https://haskellstack.org/
- apk - stack-zsh-completion - 3.11.1-r1: installed executable or alias match | Alpine Linux edge package indexes: stack-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for stack | https://haskellstack.org/
- dnf - ghc-aeson-warning-parser - 0.1.1-42.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-aeson-warning-parser from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Haskell aeson-warning-parser library | https://hackage.haskell.org/package/aeson-warning-parser
- dnf - ghc-aeson-warning-parser-devel - 0.1.1-42.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-aeson-warning-parser-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Haskell aeson-warning-parser library development files | https://haskellstack.org
- dnf - ghc-aeson-warning-parser-doc - 0.1.1-42.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-aeson-warning-parser-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Haskell aeson-warning-parser library documentation | https://haskellstack.org
- dnf - ghc-aeson-warning-parser-prof - 0.1.1-42.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-aeson-warning-parser-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Haskell aeson-warning-parser profiling library | https://haskellstack.org
- dnf - ghc-casa-client - 0.0.3-42.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-casa-client from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Haskell casa-client library | https://hackage.haskell.org/package/casa-client
- dnf - ghc-casa-client-devel - 0.0.3-42.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-casa-client-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Haskell casa-client library development files | https://haskellstack.org


## Combined YAML source

View the package source record on GitHub. [combined/haskell-stack.yml](https://github.com/mxcl/pkgdb/blob/main/combined/haskell-stack.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
