stylish-haskell
« Back to VersTracker
Description:
Haskell code prettifier
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: haskell formatter code-style linting developer-tools
Install: brew install stylish-haskell
About:
Stylish-Haskell is a code prettifier for Haskell that automatically formats source files according to a configurable set of rules. It helps maintain consistent code style across projects by handling indentation, import sorting, and language pragma alignment. The tool integrates easily into editors and CI pipelines to enforce style guidelines.
Key Features:
  • Configurable code formatting rules via YAML
  • Automatic import organization and sorting
  • Language pragma alignment and trailing whitespace removal
  • Integration with editors like Vim, Emacs, and VS Code
Use Cases:
  • Enforcing consistent code style across Haskell projects
  • Automated formatting in pre-commit hooks or CI pipelines
  • Cleaning up legacy codebases to meet modern style standards
Alternatives:
  • ormolu – Opinionated formatter with minimal configuration, focuses on a single canonical output
  • fourmolu – Ormolu fork with configurable formatting options and more flexibility
  • brittany – Highly configurable formatter that can handle complex layout preferences
Version History
Detected Version Rev Change Commit
Jan 5, 2025 10:58pm 0 VERSION_BUMP 82175d3a
Sep 13, 2024 1:03am 0 VERSION_BUMP 9fe615ec