Let's talk about Brittany

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/haskell

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarLint - Clean code begins in your IDE with SonarLint
  • SaaSHub - Software Alternatives and Reviews
  • brittany

    haskell source code formatter

    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

    Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer

    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.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • hindent

    Haskell pretty printer

    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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts