hlint
Tool for suggesting improvements to Haskell code.
TLDR
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/README.md.gz.
AUTHOR
This manual page was written by Joachim Breitner <nomeata@debian.org> for the Debian system (but may be used by others).