A linter examines source code for potential problems, questionable constructs and opportunities for improvement. Haskell developers have access to several specialist tools that extend beyond conventional linting, including source code formatters, dead-code analysers and formal verification systems.
These tools serve different purposes. HLint suggests simpler and more idiomatic expressions, while formatters such as Ormolu and Fourmolu apply consistent source code layouts. Weeder identifies unreachable declarations across module boundaries, while LiquidHaskell can verify program properties using refinement types.
Using these tools together can improve consistency, simplify maintenance and uncover problems that may otherwise go unnoticed. They are particularly useful in larger Haskell projects where code quality and maintainability become increasingly important.
We’ve selected nine tools covering these different approaches to Haskell code quality.
Here’s our verdict captured in a legendary LinuxLinks-style ratings chart. Only free and open source software is eligible for inclusion here.
Click the links in the table below to learn more about each tool. Some of the other General Purpose tools are also useful for Haskell.
| Haskell Linters | |
|---|---|
| Ormolu | Formatter for Haskell source code |
| HLint | Suggests improvements to Haskell code |
| Fourmolu | Formatter for Haskell source code, fork of Ormolu |
| LiquidHaskell | Refinement type checker for verifying properties of Haskell code |
| stylish-haskell | Simple Haskell code prettifier |
| hindent | Extensible Haskell pretty printer |
| Stan | Haskell STatic ANalyser |
| Floskell | Flexible Haskell source code pretty printer |
| Weeder | Perform whole-program dead-code analysis |
This article has been updated to reflect the changes outlined in our recent announcement.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |



Please read our Comment Policy before commenting.