2019-10-29 11:02:08 -07:00
|
|
|
# hlint
|
|
|
|
|
2024-02-14 17:25:13 -03:00
|
|
|
> Suggest improvements to Haskell code.
|
2024-10-12 10:02:00 +02:00
|
|
|
> More information: <https://hackage.haskell.org/package/hlint>.
|
2019-10-29 11:02:08 -07:00
|
|
|
|
|
|
|
- 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}}`
|