summaryrefslogtreecommitdiff
path: root/ale_linters/haskell/hdevtools.vim
diff options
context:
space:
mode:
authorRob Berry <rob@luvhate.us>2017-02-14 22:47:53 +0000
committerRob Berry <rob@luvhate.us>2017-02-16 10:06:48 +0000
commitc4afd727926ec11d1f980847c48f0828784402d6 (patch)
treeac313cbb62fc77b973daabc5cf8f786953e2a34d /ale_linters/haskell/hdevtools.vim
parentc460602cbbf80c1b1b3f006ae3dd28528a80c17c (diff)
downloadale-c4afd727926ec11d1f980847c48f0828784402d6.zip
Add hdevtools linter for haskell
This adds support for the hdevtools haskell linter https://github.com/hdevtools/hdevtools The output for hdevtools is near identical to the ghc output so this also extracts the ghc handler into the handle file and adds tests
Diffstat (limited to 'ale_linters/haskell/hdevtools.vim')
-rw-r--r--ale_linters/haskell/hdevtools.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ale_linters/haskell/hdevtools.vim b/ale_linters/haskell/hdevtools.vim
new file mode 100644
index 00000000..a5bebd97
--- /dev/null
+++ b/ale_linters/haskell/hdevtools.vim
@@ -0,0 +1,9 @@
+" Author: w0rp <devw0rp@gmail.com>
+" Description: hdevtools for Haskell files
+
+call ale#linter#Define('haskell', {
+\ 'name': 'hdevtools',
+\ 'executable': 'hdevtools',
+\ 'command': 'hdevtools check -g -Wall -p %s %t',
+\ 'callback': 'ale#handlers#HandleGhcFormat',
+\})