Fourmolu
6.7#3 in code formatting toolsFree planFree planWebLinuxWindows
Visit
| Fact | Fourmolu | Scalafmt |
|---|---|---|
| Configuration | Settings can be provided in a fourmolu.yaml file or as command-line options. | Formatting options are set in a plain text .scalafmt.conf file using HOCON syntax. |
| Purpose | Fourmolu formats Haskell source code and is a configurable fork of Ormolu. | Scalafmt is a code formatter for Scala that formats code consistently across a team. |
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.
Scalafmt suits Scala developers and teams seeking consistent formatting through editors, build tools, or the command line. It is also relevant for projects using sbt files or Scala scripts.