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)
ormolu | fourmolu | |
---|---|---|
7 | 18 | |
994 | 402 | |
0.7% | 2.2% | |
7.3 | 8.4 | |
7 days ago | 23 days ago | |
Haskell | Haskell | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" License |
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 2023-02-28.
-
Browser to Haskell Wasm Reactor Module Communication Example
I have a similar example based on Ormolu live. I wonder if there are any libraries being developed to send data back and forth?
-
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
-
Hacking on Ormolu: An internship report
Your post made me go back and check it out. I want to love ormolu, but its insistence on eating up vertical space kills it for me. #514 #657
-
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 2025-05-02.
-
Ruff and Ready: Linting Before the Party
The Haskell type checker has science behind it. It is baked into the compiler. When I want to make sure that I am doing the right thing, compiling my code is usually enough. Passing -Wall and -Werror gives me good mileage. Then, I have fourmolu as a formatter, and hlint, stan and weeder as static analyzers -- or commonly referred to as linters -- which give me the courage of an MMA fighter when I am refactoring my code, regardless of the size of the change or how old the codebase is.
- [ANN] Fourmolu 0.14.1.0
- [ANN] fourmolu-0.14.0.0 released
- [ANN] Fourmolu 0.13.0.0 released
-
[ANN] Fourmolu 0.12 + new website released!
Great work! If I'm not mistaken, it looks like the web app is built using the new WASM backend for GHC which is a pretty nice example of a real-world application :)
-
I created tsur, a mirror of the rword language
In Haskell I know of at least of one successful spite driven development project: https://github.com/fourmolu/fourmolu
- [ANN] fourmolu-0.11.0.0 released
- Announcing Scale: A WebAssembly runtime for running Rust functions in any other language
-
Secretly introduced rust in my company, now they love it!
Here's an example of using the new WASM backend to run a Haskell library in the browser: https://github.com/fourmolu/fourmolu/pull/289
- RFC: preset option groups in fourmolu
What are some alternatives?
When comparing ormolu and fourmolu you can also consider the following projects:
hlint - Haskell source code suggestions
haskell-lsp - Haskell library for the Microsoft Language Server Protocol
haskell-language-server - Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
stack - The Haskell Tool Stack
ihaskell - A Haskell kernel for the Jupyter project.
fay - A proper subset of Haskell that compiles to JavaScript