Fourmolu
6.7#3 in code formatting toolsFree planFree planWebLinuxWindows
Visit| Fact | Fourmolu | goimports |
|---|---|---|
| Installation | The 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. |
| Purpose | Fourmolu formats Haskell source code and is a configurable fork of Ormolu. | goimports updates Go import lines by adding missing imports and removing unreferenced imports. |
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.
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.