HLint Plugin for the Haskell Language Server
This is typically done through an HLint configuration file.
You can also change the behavior of HLint by adding a list of flags to haskell.plugin.hlint.config.flags
if your configuration is in a non-standard location or you want to change settings globally.
- The
hlint
executable by default turns on many extensions when parsing a file because it is not certain about the exact extensions that apply to the file (they may come from project files). This differs from HLS which uses only the extensions the file needs to parse the file. Hence it is possible for thehlint
executable to report a parse error on a file, but thehlint
plugin to work just fine on the same file. This does mean that the turning on/off of extensions in the hlint config may be ignored by thehlint
plugin.