FREEDOM251

Freedom251 › Code Formatting Tools

stylish-haskell

Free plan LinuxWindows

Visit stylish-haskell Alternatives

stylish-haskell's own site

What stylish-haskell is

stylish-haskell is a free, open-source Haskell formatter for Windows and Linux. It sorts and aligns imports, groups and wraps LANGUAGE pragmas, and can remove some redundant pragmas. The formatter also removes trailing whitespace, aligns case branches and record fields, and formats data constructors and record fields. Optional text handling can convert line endings, change tabs to four spaces, and replace certain ASCII sequences with Unicode equivalents; the tab and Unicode replacements are disabled by default. YAML configuration files control behavior at directory, project, user, or default level. Installation is documented with Stack, Cabal, Debian or Ubuntu packages, and Arch Linux packages. Editor integrations include Haskell Language Server, Vim, Emacs, Atom, and Visual Studio Code, with Language Server Protocol support through the Haskell Language Server plugin. Continuous-integration use can download the latest binary and run it in a workflow. Hackage lists the BSD-3-Clause license, and release v0.15.1.0 adds GHC 9.12 support.

Who it suits

It suits Haskell developers who want repeatable source formatting in editors, projects, or continuous-integration workflows. YAML settings support teams with different formatting preferences.

What it does well

  • Free and open source
  • Formats and sorts imports
  • Supports configurable YAML settings
  • Integrates with several editors
  • Works in continuous integration

What to know first

  • Supports Haskell only
  • Windows and Linux platforms listed
  • Tab replacement is off by default
  • No ignore-file support listed

Verdict

stylish-haskell provides broad Haskell source-formatting features with configurable behavior and editor integrations. Its BSD-3-Clause license and free availability suit developers seeking an open formatter.

Facts from stylish-haskell's own pages

CI
The README describes downloading the latest binary and running stylish-haskell in continuous integration. · github.com, 8 Oct 2026
Configurable behavior
It supports configurable line endings and can replace tabs with four spaces or certain ASCII sequences with Unicode equivalents; both replacements are off by default. · github.com, 8 Oct 2026
Configuration
Formatting is customizable through YAML configuration files, with settings available at directory, project, user, or default level. · github.com, 8 Oct 2026
Continuous integration
The README describes downloading the latest binary and running stylish-haskell in a continuous integration workflow. · github.com, 8 Oct 2026
Editor integrations
The README documents integration with Haskell Language Server, Vim, Emacs, Atom, and Visual Studio Code. · github.com, 8 Oct 2026
Editors
The README documents integrations with Haskell Language Server, Vim, Emacs, Atom, and Visual Studio Code. · github.com, 8 Oct 2026
Feature requests
The README invites feature requests through the project issue tracker. · github.com, 8 Oct 2026
Imports
It aligns and sorts import statements. · github.com, 8 Oct 2026
Install
The project documents installation with Stack, Cabal, Debian or Ubuntu packages, and Arch Linux packages. · github.com, 8 Oct 2026
Installation
The README documents installation with Stack or Cabal and package-manager installation for Debian, Ubuntu, and Arch Linux. · github.com, 8 Oct 2026
Language pragmas
It groups and wraps LANGUAGE pragmas and can remove some redundant pragmas. · github.com, 8 Oct 2026
Language server
Editors that support the Language Server Protocol can use stylish-haskell through the Haskell Language Server plugin and its formatting-provider setting. · github.com, 8 Oct 2026
Latest listed release
The GitHub releases page lists v0.15.1.0 as the latest release and says it adds support for GHC 9.12. · github.com, 8 Oct 2026
License
Hackage lists the package under the BSD-3-Clause license. · hackage.haskell.org, 8 Oct 2026
Maintainer
The README names Jasper Van der Jeugt as the author and maintainer. · github.com, 8 Oct 2026
Other formatting
It removes trailing whitespace, aligns case branches and record fields, and formats data constructors and record fields. · github.com, 8 Oct 2026
Pragmas
It groups and wraps LANGUAGE pragmas and can remove some redundant pragmas. · github.com, 8 Oct 2026
Purpose
stylish-haskell is a Haskell code prettifier designed to help with formatting tasks such as cleaning up import statements. · github.com, 8 Oct 2026
Support
The project welcomes feature requests through its GitHub issue tracker. · github.com, 8 Oct 2026
Text options
It can convert line endings, replace tabs with four spaces, and replace some ASCII sequences with Unicode equivalents; the latter two options are off by default. · github.com, 8 Oct 2026

Where stylish-haskell stands on Freedom251

Look at these too