# 使用 Homebrew, apt, Nix, pacman 安装 stylish-haskell

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stylish-haskell
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install stylish-haskell
```

  证据: Debian stable package indexes: stylish-haskell from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#stylish-haskell
```

  证据: nixpkgs package indexes: stylish-haskell from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S stylish-haskell
```

  证据: Arch Linux sync databases: stylish-haskell from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:stylish-haskell
- **软件包管理器:** Homebrew
- **版本:** 0.15.1.0
- **来源摘要:** Haskell code prettifier
- **主页:** <https://github.com/haskell/stylish-haskell>
- **仓库:** <https://github.com/haskell/stylish-haskell>
- **最后更新:** 2026-07-22T13:45:34Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- stylish-haskell (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.15.1.0
## 项目历史与用法

stylish-haskell is a Haskell source prettifier focused on practical cleanup rather than whole-program reformatting. Its README says the tool aligns and sorts imports, groups language pragmas, removes trailing whitespace, aligns records and cases, converts line endings, and can be used as a filter in editors.

### 项目历史

The Cabal metadata lists Jasper Van der Jeugt as author and maintainer and carries a 2012 copyright notice. The README describes the original design goal as avoiding formatters that get in the way while automating tedious import and layout cleanup.

### 采用历史

The README documents installation through `stack install`, `cabal install`, Debian, Ubuntu, and Arch Linux, while the input package-manager facts also list Homebrew, Nix, Debian, and Pacman packages. It is also exposed through editor workflows including Haskell Language Server, Vim, Emacs, Atom, and Visual Studio Code integrations.

### 使用方式

Common usage is either project-level formatting through `.stylish-haskell.yaml` or editor-filter usage such as piping a buffer through `stylish-haskell`. The README documents a search order that checks an explicit `--config`, the current or nearest ancestor `.stylish-haskell.yaml`, the platform config directory, the home directory, and finally defaults.

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

Package maintainers care about stylish-haskell because it is a small CLI with predictable config discovery, broad Haskell package-manager availability, and a long life across GHC and Cabal releases. Its changelog is largely about compiler and parser compatibility, which is exactly the kind of maintenance surface Haskell packagers track.

### 时间线

- 2012: Cabal metadata lists the project copyright and original authorship.
- 2024-01-19: Version 0.14.6.0 added GHC 9.8 support according to the official changelog.
- 2025-04-13: Version 0.15.1.0 added GHC 9.12 support according to the official changelog.

### Related projects

- The README names Haskell Language Server, haskell-mode, vim-autoformat, vim-stylish-haskell, stylish-haskell-vscode, Stack, Cabal, and ghc-lib-parser-adjacent packaging concerns as part of its ecosystem.

### 来源

- <https://raw.githubusercontent.com/haskell/stylish-haskell/master/CHANGELOG>
- <https://raw.githubusercontent.com/haskell/stylish-haskell/master/README.markdown>
- <https://raw.githubusercontent.com/haskell/stylish-haskell/master/stylish-haskell.cabal>
- input source_facts.package-manager


## 安全说明

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: .stylish-haskell.yaml, $XDG_CONFIG_HOME/stylish-haskell/config.yaml, ~/.config/stylish-haskell/config.yaml, ~/.stylish-haskell.yaml
- Windows: %APPDATA%/stylish-haskell/config.yaml
## 其他软件包管理器记录

- Debian apt - stylish-haskell - 0.14.5.0-3: normalized package name match | Debian stable package indexes: stylish-haskell from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Haskell code prettifier | https://github.com/haskell/stylish-haskell
- Nix - stylish-haskell: normalized package name match | nixpkgs package indexes: stylish-haskell from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- pacman - stylish-haskell - 0.14.5.0-62: normalized package name match | Arch Linux sync databases: stylish-haskell from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Haskell code prettifier | https://github.com/haskell/stylish-haskell


## Combined YAML source

View the package source record on GitHub. [combined/stylish-haskell.yml](https://github.com/mxcl/pkgdb/blob/main/combined/stylish-haskell.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
