EVERYTHING XIAOMI
Get listed
Side by side

Fourmolu vs goimports

Fourmolu

6.7#3 in code formatting toolsFree plan
Free planWebLinuxWindows
Visit

goimports

6.2#14 in code formatting toolsFree plan
Free planWebLinuxmacOSWindows
Visit

What both publish

FactFourmolugoimports
InstallationThe project documents installation through GHCup, Cabal, Stack, and dotslash.The package page gives `go install golang.org/x/tools/cmd/goimports@latest` as the installation command.
PurposeFourmolu formats Haskell source code and is a configurable fork of Ormolu.goimports updates Go import lines by adding missing imports and removing unreferenced imports.

Fourmolu plans

  • FourmoluFree

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

goimports suits Go developers who want imports corrected and code formatted as part of an editor workflow. It may also help those who need to exclude directories from scanning.

Charts they share