hindent
Haskell pretty printer (by mihaimaruseac)
ormolu
A formatter for Haskell source code (by tweag)
Our great sponsors
hindent | ormolu | |
---|---|---|
2 | 7 | |
554 | 920 | |
- | 0.7% | |
9.0 | 7.7 | |
5 days ago | 24 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.
hindent
Posts with mentions or reviews of hindent.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-03.
-
I'm dissatisfied with both wrap and nowrap
Because every language is so different, every language requires individual care. So there are language specific formatters (https://github.com/mihaimaruseac/hindent for Haskell), which are usually configurable by some configuration file the in the project.
-
Let's talk about Brittany
In the long run, though, I expect Fourmolu (not Ormolu) will end up becoming the norm, because, really, two-space indents are not going to work for everyone. One of the things I like about hindent (that I did myself) is that it discovers default language extensions from the .cabal file, so you don't need to specify those yourself. I might see if I can get that code into Fourmolu.
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
What are some alternatives?
When comparing hindent and ormolu you can also consider the following projects:
hfd - Flash debugger with haskeline interface
fourmolu - A fourk of ormolu that uses four space indentation and allows arbitrary configuration. Don't like it? PRs welcome!
hadolint - Dockerfile linter, validate inline bash, written in Haskell
haskell-language-server - Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
grm - grm grammar converter
brittany - haskell source code formatter
codex - A ctags file generator for cabal/stack project dependencies.
hlint - Haskell source code suggestions
bumper - Haskell tool to automatically bump package versions transitively.
fugue - A recapitulated prelude with minimal dependencies and profligate exports.