Coding

9 Best Free and Open Source Haskell Linter Tools

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.

Ratings chart

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
OrmoluFormatter for Haskell source code
HLintSuggests improvements to Haskell code
FourmoluFormatter for Haskell source code, fork of Ormolu
LiquidHaskellRefinement type checker for verifying properties of Haskell code
stylish-haskellSimple Haskell code prettifier
hindentExtensible Haskell pretty printer
StanHaskell STatic ANalyser
FloskellFlexible Haskell source code pretty printer
WeederPerform whole-program dead-code analysis

This article has been updated to reflect the changes outlined in our recent announcement.

Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted