Fourmolu
6.7#3 in code formatting toolsFree planFree planWebLinuxWindows
Visit| Fact | Fourmolu | Ormolu |
|---|---|---|
| CI integration | The README recommends the run-fourmolu GitHub Action for keeping a project formatted. | The project recommends the run-ormolu GitHub Action to keep a project formatted. |
| Installation | The project documents installation through GHCup, Cabal, Stack, and dotslash. | The release page provides binaries for Linux, macOS, and Windows, and the project can also be installed with cabal or stack. |
| Limitations | The README describes CPP support as experimental and says it works only in simple cases where CPP conditionals surround top-level declarations. | CPP support is experimental and works only in simple cases where CPP conditionals surround top-level declarations. |
| Purpose | Fourmolu formats Haskell source code and is a configurable fork of Ormolu. | Ormolu is a formatter for Haskell source code. |
It suits Haskell developers who want configurable source formatting, including teams seeking editor or CI integration. Developers using CPP or CRLF line endings should review its stated limitations.
Ormolu suits Haskell developers who want a single shared formatting style across editors or CI. It also offers a browser version for trying the formatter without installing the desktop binaries.