diff options
author | wisut hantanong <wizzup@gmail.com> | 2017-04-22 19:23:23 +0700 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-15 19:46:02 +0100 |
commit | 3f33dc7d9832b7aed085d44b8ef76fd1c1eb90a5 (patch) | |
tree | ad8beb01dda1bb5b56a6881bfd65c3ef3d3dd6e3 /ale_linters | |
parent | d4466d4be744d7723dc740b29faded1d685f091d (diff) | |
download | ale-3f33dc7d9832b7aed085d44b8ef76fd1c1eb90a5.zip |
Haskell: add ghc-mod linter
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/haskell/ghc-mod.vim | 16 |
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', +\}) |