dprint
6.1#19 in code formatting toolsFree planFree planExtensionLinuxmacOSSelf-hosted
Visit| Fact | dprint | Fourmolu |
|---|---|---|
| Configuration | Projects use dprint.json, dprint.jsonc, .dprint.json or .dprint.jsonc files to define plugins, formatting settings, includes and excludes. | Settings can be provided in a fourmolu.yaml file or as command-line options. |
| Installation | The CLI is distributed as a single static binary with no runtime dependencies and can be installed via shell, PowerShell, Scoop, Homebrew, Cargo, npm, uv, mise, asdf or Arch Linux. | The project documents installation through GHCup, Cabal, Stack, and dotslash. |
| Purpose | dprint is a command-line application that automatically formats code. | Fourmolu formats Haskell source code and is a configurable fork of Ormolu. |
dprint suits developers who want configurable automated formatting in command-line, editor, or CI workflows. Teams should distinguish sandboxed WebAssembly plugins from executable process plugins.
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.