# Install stylish-haskell with Homebrew, apt, Nix, pacman

Haskell code prettifier. Version 0.15.1.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

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

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:stylish-haskell
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/stylish-haskell>
- **Version:** 0.15.1.0
- **Source summary:** Haskell code prettifier
- **Homepage:** <https://github.com/haskell/stylish-haskell>
- **Repository:** <https://github.com/haskell/stylish-haskell>
- **Upstream docs:** <https://github.com/haskell/stylish-haskell#readme>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/haskell/stylish-haskell/archive/refs/tags/v0.15.1.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- stylish-haskell (cli)
- stylish-haskell (alias)

## Dependencies

- gmp

## Build dependencies

- cabal-install
- ghc

## Uses from macOS

- libffi

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.15.1.0
- Local data: ok
- Upstream repository: https://github.com/haskell/stylish-haskell
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** stylish-haskell
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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-42: 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cabal-install](https://www.automicvault.com/pkg/brew/cabal-install/) - Build dependency declared by Homebrew.
- [ghc](https://www.automicvault.com/pkg/brew/ghc/) - Build dependency declared by Homebrew.
- [cljfmt](https://www.automicvault.com/pkg/brew/cljfmt/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [fourmolu](https://www.automicvault.com/pkg/brew/fourmolu/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters, haskell.
- [gci](https://www.automicvault.com/pkg/brew/gci/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [gnu-indent](https://www.automicvault.com/pkg/brew/gnu-indent/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [snakefmt](https://www.automicvault.com/pkg/brew/snakefmt/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [stylua](https://www.automicvault.com/pkg/brew/stylua/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [yapf](https://www.automicvault.com/pkg/brew/yapf/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [beautysh](https://www.automicvault.com/pkg/brew/beautysh/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters.

## Combined YAML source

View the package source record on GitHub. [combined/stylish-haskell.yml](https://github.com/automic-vault/db/blob/main/combined/stylish-haskell.yml)


## Sources

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