elm-format vs Ormolu
elm-format
github.comOrmolu
github.comSide by side
| Figure | elm-format | Ormolu |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | — | Yes |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Code Formatting Tools | 7.9 (#11) | 7.8 (#14) |
| Editor integrations | The README lists integrations for Atom, Light Table, Vim, Emacs, Visual Studio Code, Sublime Text, JetBrains IDEs, and TextMate. | The README lists integrations for Emacs, VS Code, and Vim through neoformat or vim-ormolu. |
| License | The repository identifies its license as BSD-3-Clause. | The project’s license permits redistribution and use in source and binary forms subject to stated conditions and provides the software “as is.” |
| Purpose | elm-format formats Elm source code according to rules based on the official Elm Style Guide. | Ormolu is a formatter for Haskell source code. |
Plans
In their own words
Ormolu
Ormolu is a formatter for Haskell source code. It uses GHC’s parser and applies one consistent style, with the aim of keeping diffs small. That style cannot be configured, and the project aims to leave code unchanged when it is formatted again after already meeting the style. Release binaries are available for Linux, macOS, and Windows; installation through cabal or stack is also supported. Ormolu Live provides a browser version. Listed editor integrations cover Emacs, VS Code, and Vim through neoformat or vim-ormolu, and Haskell Language Server has built-in support for Ormolu. For continuous integration, the project recommends the run-ormolu GitHub Action. It reads default language extensions and dependencies from a matching Cabal file;.ormolu files can specify fixity overrides and module re-export instructions. CPP support remains experimental and works only in simple cases where conditionals surround top-level declarations. Ormolu is open source and free, with a listed plan price of free.