hlint - Man Page
haskell source code suggestions
Examples (TL;DR)
- Display suggestions for a given file:
hlint path/to/file options
- Check all Haskell files and generate a report:
hlint path/to/directory --report
- Automatically apply most suggestions:
hlint path/to/file --refactor
- Display additional options:
hlint path/to/file --refactor-options
- Generate a settings file ignoring all outstanding hints:
hlint path/to/file --default > .hlint.yaml
Synopsis
hlint [files/directories] [options]
Description
HLint is a tool for suggesting possible improvements to Haskell code. These suggestions include ideas such as using alternative functions, simplifying code and spotting redundancies.
Options
- -? --help
Display help message
- -v --version
Display version information
- -r[file] --report[=file]
Generate a report in HTML
- -h file --hint=file
Hint/ignore file to use
- -c --color, --colour
Color the output (requires ANSI terminal)
- -i message --ignore=message
Ignore a particular hint
- -s --show
Show all ignored ideas
- -t --test
Run in test mode
Example
"To check all Haskell files in 'src' and generate a report type:"
hlint src --report
See Also
The full documentation for HLint is available in /usr/share/doc/hlint/hlint.html.
Author
This manual page was written by Joachim Breitner <nomeata@debian.org> for the Debian system (but may be used by others).
Info
July 2009 HLint (C) Neil Mitchell 2006-2009