macOS
brew install fourmolulocal Homebrew formula metadata
brew
Formatter for Haskell source code. Version 0.20.0.0 via Homebrew; verified 2026-06-28.
install
brew install fourmolulocal Homebrew formula metadata
nix profile install nixpkgs#fourmolunixpkgs package indexes · pkgs/by-name/fo/fourmolu/package.nix · source: api.github.com
overview
Formatter for Haskell source code
history
Fourmolu is a formatter for Haskell source code. It is an Ormolu fork that keeps Ormolu's parser-driven, idempotent formatting goals while adding configurable style options through CLI flags and `fourmolu.yaml`.
The repository was created in 2020 and describes itself as a fork of Ormolu with upstream improvements continually merged. The official README frames the project around one key departure from Ormolu: replacing the no-configuration style rule with configurable parameters.
The changelog shows a pattern of adding Fourmolu-specific configuration while also importing upstream Ormolu changes, including parser updates, formatting fixes, and support for new GHC language features.
Fourmolu is adopted by Haskell projects that want automatic formatting but need policy knobs that Ormolu intentionally avoids. The README documents installation through GHCup, Cabal, Stack, release notes, editor integration through Haskell Language Server, and CI through the recommended `run-fourmolu` GitHub Action.
Users run `fourmolu Module.hs` to print formatted output, `fourmolu -i` to rewrite files, or `fourmolu --mode check` in CI. Configuration can be written in `fourmolu.yaml`, discovered from parent directories and the XDG config directory, or passed as command-line options.
Fourmolu is a package-nerd case study in formatter governance. It forked an intentionally opinionated tool not to change the parser architecture, but to change the social contract around style configuration, while still tracking upstream Ormolu.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
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.
Config paths the tool may read or write during local use.
fourmolu.yamlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
fourmolu | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:fourmolu |
|---|---|
| Version | 0.20.0.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/fourmolu |
| Homepage | https://fourmolu.github.io/ |
| Repository | https://github.com/fourmolu/fourmolu |
| Upstream docs | https://fourmolu.github.io/ |
| License | BSD-3-Clause |
| Source archive | https://hackage.haskell.org/package/fourmolu-0.20.0.0/fourmolu-0.20.0.0.tar.gz |
| Last updated | 2026-06-28T12:05:17-04:00 |
| Pulse | updated |
| Dependencies | gmp |
| Build dependencies | cabal-install, ghc |
| Uses from macOS | libffi |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | fourmolu |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
fourmolu
nix profile install nixpkgs#fourmolusource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.