---
name: hlint
description: "Use when adopting HLint to assess this standard: Review Haskell simplification hints"
---

# Apply HLint

Analyze source modules for redundant expressions and common mistakes. Keep intentional exceptions narrow and test semantics when adopting a suggestion.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by HLint.
2. Use HLint in this repository to meet this standard: Review Haskell simplification hints. Analyze source modules for redundant expressions and common mistakes. Keep intentional exceptions narrow and test semantics when adopting a suggestion. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://github.com/ndmitchell/hlint) for configuration and prerequisites.

## Tool invocation

```
hlint .
```
