ormolu
A formatter for Haskell source code (by tweag)
fourmolu
A fourk of ormolu that uses four space indentation and allows arbitrary configuration. Don't like it? PRs welcome! (by parsonsmatt)
Our great sponsors
ormolu | fourmolu | |
---|---|---|
6 | 7 | |
809 | 232 | |
1.5% | 4.7% | |
6.9 | 9.0 | |
7 days ago | about 13 hours ago | |
Haskell | Haskell | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ormolu
Posts with mentions or reviews of ormolu.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-23.
-
Format multiline imports in hls (emacs)
You will also need a formatter that uses that style. Brittany for example. The default formattingProvider for HLS is ormolu, which I believe doesn't use this style, so you will have to change this setting.
- Monthly Hask Anything (February 2022)
- Open source projects for beginners
-
Advent of Code 2021 day 1
Turns out I prefer Brittany to Ormolu, I edited it so it hopefully looks less verbose all on one line
-
Emacs for Haskell
For code formatting ormolu is a good option
fourmolu
Posts with mentions or reviews of fourmolu.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-10.
- [ANN] Fourmolu 0.9
- Anyone have an up-to-date GitHub Action config that uses cabal for binary releases
-
[ANN] Fourmolu 0.7.0.0
If I could nitpick here a bit, fourmolu is primarily a fork that is ormolu + configuration. It also happens to have a default configuration different from ormolu (https://github.com/fourmolu/fourmolu/issue/128), but it's not the primary motivation for fourmolu
That github link is broken: https://github.com/fourmolu/fourmolu/issues/128.
-
Why is there no "standard" formatting tool for haskell?
Thanks for sharing fourmolu! This is awesome!
What are some alternatives?
When comparing ormolu and fourmolu you can also consider the following projects:
haskell-language-server - Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
brittany - haskell source code formatter
hlint - Haskell source code suggestions
hadolint - Dockerfile linter, validate inline bash, written in Haskell
normalize-imports - Sort and align Haskell import statements
fugue - A recapitulated prelude with minimal dependencies and profligate exports.
lsp-haskell - lsp-mode :heart: haskell
ihaskell - A Haskell kernel for the Jupyter project.
leksah - Haskell IDE
repl - Public friendly Haskell REPL
hoogle - Haskell API search engine
ghci-ng