EVERYTHING XIAOMI
Get listed
Side by side

Black vs Fourmolu

Black

6.6#3 in code formattersFree plan
Free planLinuxmacOSSelf-hostedWindows
Visit

Fourmolu

6.7#3 in code formatting toolsFree plan
Free planWebLinuxWindows
Visit

What both publish

FactBlackFourmolu
CI integrationBlack provides a GitHub Actions integration that supports GitHub-hosted runner operating systems.The README recommends the run-fourmolu GitHub Action for keeping a project formatted.
InstallationBlack installs with pip or pipx and requires Python 3.10 or later to run.The project documents installation through GHCup, Cabal, Stack, and dotslash.
PurposeBlack is an opinionated formatter for Python code that follows PEP 8.Fourmolu formats Haskell source code and is a configurable fork of Ormolu.

Black plans

  • BlackFree

Fourmolu plans

  • FourmoluFree

Pick Black if…

Black suits Python developers who want consistent formatting with few style decisions. It can also suit teams using documented editor integrations or GitHub Actions.

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.

Charts they share