Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

HLint

github.com

  • Free plan
  • Windows
  • macOS
  • Linux
7.2 Club score Visit github.com

What HLint is

HLint is a free tool that suggests possible improvements to Haskell source code. Suggestions include alternative functions, simpler expressions, and redundant code. Each hint identifies the file and line, severity, description, detected code, and a possible replacement. Projects can configure a .hlint.yaml file with custom hints or ignored suggestions. The --refactor option applies some recommendations and requires the refactor executable from the apply-refact package on PATH. The --report option creates an interactive HTML findings report. HLint runs on Linux, macOS, and Windows, and listed integrations include editor plugins, Haskell Language Server, ghc-mod, Intero, Code Climate, and GitHub Actions. It analyzes one module at a time and does not know types or which names are in scope. The project warns that transformations can change program semantics or type defaults. For C preprocessor input, HLint checks one conditional branch according to defined macros. Version 3.10 is shown as released February 2, 2024.

Who it suits

HLint suits Haskell developers who want automated suggestions, configurable project rules, and editor or CI integration. Beginners can concentrate on warning hints, while larger projects can add custom rules.

Good to know, and what to watch

  • Free Haskell source analysis
  • Detailed file-and-line suggestions
  • Custom hints and ignored rules
  • Optional refactoring and HTML reports
  • Editor and CI integrations
  • Analyzes one module at a time
  • Does not know types or names in scope
  • Some transformations may change semantics
  • C preprocessor checking covers one branch

Free

Free

Free plan

The verdict

HLint provides configurable Haskell suggestions with reporting, optional refactoring, and broad development integrations. Review every recommendation because its analysis scope and documented transformation caveats can affect results.

What the maker publishes

Audience
The project suggests that beginners may focus on warning hints and that larger projects can add custom hints or rules. source
CI
The project documents use with Travis CI, AppVeyor, and Azure Pipelines, and says its supplied command works on Windows, Mac, and Linux. source
Configuration
Projects can configure HLint with a .hlint.yaml file, including custom hints and ignored suggestions. source
Integrations
The project lists editor plugins, Haskell Language Server, ghc-mod, Intero, a GHC source plugin, Code Climate, and GitHub Actions among its integrations. source
Known caveat
The project warns that some transformations may change program semantics or cause values to default to different types. source
Latest release shown
The GitHub releases page identifies version 3.10, released February 2, 2024. source
License
The repository provides HLint under a BSD-style license that permits redistribution and use in source and binary forms subject to listed conditions. source
Output
Each hint identifies the file and line, its severity and description, the code found, and a possible replacement. source
Preprocessor limit
HLint checks only one conditional branch at a time for C preprocessor input, based on the defined macros. source
Purpose
HLint suggests possible improvements to Haskell code, including alternative functions, simplifications, and redundancies. source
Refactoring
The --refactor flag can apply some suggestions and requires the refactor executable from the apply-refact package on PATH. source
Reports
The --report flag generates an interactive HTML report of findings. source
Scope limit
HLint analyzes one module at a time and does not know types or which names are in scope. source

Checked against the maker's pages on 7 Oct 2026.