EVERYTHING XIAOMI
Get listed
Side by side

Fourmolu vs shfmt

Fourmolu

6.7#3 in code formatting toolsFree plan
Free planWebLinuxWindows
Visit

shfmt

6.1#18 in code formatting toolsFree plan
Free planLinuxmacOSSelf-hostedWindows
Visit

What both publish

FactFourmolushfmt
ConfigurationSettings can be provided in a fourmolu.yaml file or as command-line options.shfmt reads formatting options from EditorConfig files when parser or printer flags are not provided.
PurposeFourmolu formats Haskell source code and is a configurable fork of Ormolu.shfmt formats shell programs and is included in a shell parser, formatter, and interpreter project.

Fourmolu plans

  • FourmoluFree

shfmt plans

  • shfmtFree

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 shfmt if…

shfmt suits shell developers who want consistent formatting or syntax checks across POSIX Shell, Bash, Zsh, mksh or Bats. Editor integrations and a library API also serve users integrating it into editor or code workflows.

Charts they share