EVERYTHING XIAOMI
Get listed
Side by side

Fourmolu vs Scalafmt

Fourmolu

6.7#3 in code formatting toolsFree plan
Free planWebLinuxWindows
Visit
Scalafmt logo

Scalafmt

6.0#24 in code formatting toolsFree plan
Free planLinuxmacOSSelf-hostedWindows
Visit

What both publish

FactFourmoluScalafmt
ConfigurationSettings 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.
PurposeFourmolu 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.

Fourmolu plans

  • FourmoluFree

Scalafmt plans

  • FreeFree

Pick Fourmolu if…

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.

Pick Scalafmt if…

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.

Charts they share