Fourmolu
6.7#3 in code formatting toolsFree planFree planWebLinuxWindows
Visit| Fact | Fourmolu | rustfmt |
|---|---|---|
| Configuration | Settings can be provided in a fourmolu.yaml file or as command-line options. | Configuration can be set in `rustfmt.toml` or `.rustfmt.toml`, and the default style conforms to the Rust style guide. |
| Limitations | The README describes CPP support as experimental and says it works only in simple cases where CPP conditionals surround top-level declarations. | The README lists limitations involving unparsable code, macros, comments, code fragments, non-ASCII Unicode, and bugs. |
| Purpose | Fourmolu formats Haskell source code and is a configurable fork of Ormolu. | rustfmt formats Rust code according to style guidelines. |
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.
rustfmt suits Rust developers who want consistent formatting through Cargo, an editor, or CI. It is also relevant to developers who need configurable formatting behavior.