hindent
Haskell pretty printer (by mihaimaruseac)
haskell-src-exts
Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer (by haskell-suite)
hindent | haskell-src-exts | |
---|---|---|
2 | 2 | |
553 | 193 | |
- | 0.5% | |
9.1 | 0.0 | |
6 days ago | 10 months 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.
haskell-src-exts
Posts with mentions or reviews of haskell-src-exts.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-04-23.
-
Let's talk about Brittany
Hindent relies on haskell-src-exts which hasn't been updated for more than a year, so I end up using my own fork of both while my PR is pending. I've also made a number of changes to my Hindent fork to my preferences. Fortunately stack makes it easy to use particular git commits for packages.
-
[ANN] hindent 5.3.2 released
Does this support StandAloneKindSignatures and visible forall quantification? I have an 8mo old PR to haskell-src-exts for these but it doesn't look like it's been merged.
What are some alternatives?
When comparing hindent and haskell-src-exts you can also consider the following projects:
hfd - Flash debugger with haskeline interface
bricks - Bricks is a lazy functional language based on Nix.
ormolu - A formatter for Haskell source code
CoreErlang - AST, parser, pretty-printer for Core Erlang source code.
hadolint - Dockerfile linter, validate inline bash, written in Haskell
toml-parser - Haskell parser and printer for the TOML 1.0.0 file format
grm - grm grammar converter
alga
codex - A ctags file generator for cabal/stack project dependencies.
lens-toml-parser - Lenses for toml-parser
hlint - Haskell source code suggestions
homplexity - Haskell code complexity and quality measurement