From 3f33dc7d9832b7aed085d44b8ef76fd1c1eb90a5 Mon Sep 17 00:00:00 2001 From: wisut hantanong Date: Sat, 22 Apr 2017 19:23:23 +0700 Subject: Haskell: add ghc-mod linter --- ale_linters/haskell/ghc-mod.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ale_linters/haskell/ghc-mod.vim (limited to 'ale_linters') 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 +" 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', +\}) -- cgit v1.2.3