summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorwisut hantanong <wizzup@gmail.com>2017-04-22 19:23:23 +0700
committerw0rp <devw0rp@gmail.com>2017-05-15 19:46:02 +0100
commit3f33dc7d9832b7aed085d44b8ef76fd1c1eb90a5 (patch)
treead8beb01dda1bb5b56a6881bfd65c3ef3d3dd6e3 /ale_linters
parentd4466d4be744d7723dc740b29faded1d685f091d (diff)
downloadale-3f33dc7d9832b7aed085d44b8ef76fd1c1eb90a5.zip
Haskell: add 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',
+\})