# haskell/stylish-haskell

Haskell code prettifier

Repository: https://github.com/haskell/stylish-haskell
Canonical: https://ross.abutalabs.com/products/stylish-haskell
Language: Haskell
License: NOASSERTION
License Family: other
Topics: hacktoberfest, prettifier, haskell
Last push: 2025-12-28T11:10:27+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 59, release rhythm 40, longevity 100
- inputs: {"age_days": 5224, "days_push": 248, "days_rel": 502, "gap_med": 2.0, "n_releases_24m": 3}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1026, forks 153 (observed 2026-08-28T04:03:16.824657+00:00)

## What it is
stylish-haskell is a Haskell code prettifier that cleans up common formatting annoyances like import statements, LANGUAGE pragmas, and record field alignment. It intentionally formats selectively rather than reformatting entire files, so it stays out of the developer's way.

## Use cases
- sort and align haskell import statements
- group and wrap language pragmas in haskell files
- remove trailing whitespace from haskell source
- align case branches and record fields in haskell
- enforce consistent haskell code style in CI

## When to choose
- you want targeted cleanup of imports and pragmas without a full-file formatter
- you prefer a lightweight, configurable tool over opinionated whole-file formatters like Ormolu

## When to avoid
- you need complete, opinionated formatting of all Haskell code
- you work in a language other than Haskell

## Facets
- artifact type: cli-tool
- maturity: active
- function: formatter, cli, developer-tools
- domain: developer-tools, programming-languages
- platform: windows, cli
- tags: haskell, code-prettifier, import-sorting, code-style, command-line, linux, macos

## Member repositories
- haskell/stylish-haskell (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:16.824657+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:07:58.365896+00:00, confidence not recorded.
  - readme: https://github.com/haskell/stylish-haskell (fetched 2026-08-28T04:03:16.824657+00:00, sha 6ddd9aafad62)
- Data as of 2026-08-30T08:39:29.467469+00:00.
