Mark Karpov announces Tilia, a new Haskell code formatter built from scratch that aims to solve three long-standing challenges: correct comment handling, operator fixity inference, and CPP support. The post details approaches to handling the tricky problem of inferring operator fixities—either through hardcoded Hackage databases or by integrating with GHC/Cabal for real information.
Background
Haskell has had limited formatting tooling compared to other languages, with hindent and stylish-haskell being the main options. The language's complex syntax around operators, comments, and CPP adds unique challenges for formatter development.
- Source
- Lobsters
- Published
- Sep 17, 2026 at 12:17 PM
- Score
- 6.0 / 10