summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-05-15 19:57:50 +0100
committerGitHub <noreply@github.com>2017-05-15 19:57:50 +0100
commit113f53a5d201af79027d9d5a87e28fc45bc1e60f (patch)
treead8beb01dda1bb5b56a6881bfd65c3ef3d3dd6e3 /ale_linters
parentd4466d4be744d7723dc740b29faded1d685f091d (diff)
parent3f33dc7d9832b7aed085d44b8ef76fd1c1eb90a5 (diff)
downloadale-113f53a5d201af79027d9d5a87e28fc45bc1e60f.zip
Merge pull request #496 from wizzup/haskell-ghc-mod
Haskell: new ghc-mod linter
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/haskell/ghc-mod.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/ale_linters/haskell/ghc-mod.vim b/ale_linters/haskell/ghc-mod.vim
new file mode 100644
index 00000000..d3d23649
--- /dev/null
+++ b/ale_linters/haskell/ghc-mod.vim
@@ -0,0 +1,16 @@
+" Author: wizzup <wizzup@gmail.com>
+" Description: ghc-mod for Haskell files
+
+call ale#linter#Define('haskell', {
+\ 'name': 'ghc-mod',
+\ 'executable': 'ghc-mod',
+\ 'command': 'ghc-mod check %t',
+\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
+\})
+
+call ale#linter#Define('haskell', {
+\ 'name': 'stack-ghc-mod',
+\ 'executable': 'stack',
+\ 'command': 'stack exec ghc-mod check %t',
+\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
+\})