brittany
haskell source code formatter (by lspitzner)
haskell-src-exts
Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer (by haskell-suite)
Our great sponsors
brittany | haskell-src-exts | |
---|---|---|
7 | 2 | |
689 | 193 | |
- | 0.0% | |
0.0 | 0.0 | |
over 1 year ago | 9 months ago | |
Haskell | Haskell | |
GNU Affero General Public License v3.0 only | 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.
brittany
Posts with mentions or reviews of brittany.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-23.
- Announce end of maintenance by tfausak · Pull Request #377 · lspitzner/brittany
-
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.
-
Why is there no "standard" formatting tool for haskell?
Yeah I couldn't find anything at all which is really unfortunate. You could check out the config source code
-
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
-
Let's talk about Brittany
I use Brittany and prefer it to Ormolu, because it aligns more things and it break lines that are too long automatically. I have recently tried to figure out how I could implement a solution to https://github.com/lspitzner/brittany/issues/157, but it is quite hard to figure out which parts of the code would be involved in such a change. And I don't really have enough time to make steady contributions, but I will probably try to make a few contributions sometime.
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 brittany and haskell-src-exts you can also consider the following projects:
stylish-haskell - Haskell code prettifier [Moved to: https://github.com/haskell/stylish-haskell]
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.
axel - Haskell + Lisp
toml-parser - Haskell parser and printer for the TOML 1.0.0 file format
hfmt - Format Haskell programs. Inspired by the gofmt utility.
alga
formura - Describe stencil formurae without even translating them
lens-toml-parser - Lenses for toml-parser
haskell-names - Haskell suite library for name resolution
brittany vs stylish-haskell
haskell-src-exts vs bricks
brittany vs ormolu
haskell-src-exts vs CoreErlang
brittany vs axel
haskell-src-exts vs toml-parser
brittany vs hfmt
haskell-src-exts vs alga
brittany vs formura
haskell-src-exts vs lens-toml-parser
brittany vs CoreErlang
haskell-src-exts vs haskell-names