"haskell-linter" is a wrapper for hlint. It highlights hlint warnings and errors inline and provides a code-action to accept hlint suggestions.
It expects a version of hlint >= 1.9.1 to be installed and already added to the path. If it is installed but cannot be found, add the path to your preferences as seen below.
{ "haskell.hlint.executablePath": "Path\To\Executable" }
There are various options that can be configured by making changes to your user or workspace preferences.
By default the linter will lint as you type. Alternatively, set haskell.hlint.run
to onSave
or never
if you want to lint only when the file is saved (works best if auto-save is on) or disable it for a workspace or entirely.
{ "haskell.hlint.run": "onType" // also: "onSave", "never" }
By default the linter simply calls the hlint
command without arguments. To specify a set of hints to use or a set of hints to ignore, add them to the configuration as shown below.
{ "haskell.hlint.hints": ["Default", "Dollar", "Generalise"], "haskell.hlint.ignore": ["Redundant do"] }
Make sure you have a hlint installed and that the version is 1.9.1 or newer. If you're having issues with the extension, set the logLevel setting to log
and check the output in the developer tools console.
{ "haskell.hlint.logLevel": "log" }
The extension architecture is based off of the PHPValidationProvider from the built-in php extension.
0.0.6:
0.0.4:
hlint.ignore
configuration (Thanks to @vigoo)0.0.3:
package.json
which helps users when changing preferences0.0.2:
haskell.hlint.executablePath
should workRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4