summaryrefslogtreecommitdiff
path: root/ale_linters/haskell/stack_ghc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/haskell/stack_ghc.vim')
-rw-r--r--ale_linters/haskell/stack_ghc.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/ale_linters/haskell/stack_ghc.vim b/ale_linters/haskell/stack_ghc.vim
new file mode 100644
index 00000000..0367dc24
--- /dev/null
+++ b/ale_linters/haskell/stack_ghc.vim
@@ -0,0 +1,10 @@
+" Author: w0rp <devw0rp@gmail.com>
+" Description: ghc for Haskell files, using Stack
+
+call ale#linter#Define('haskell', {
+\ 'name': 'stack-ghc',
+\ 'output_stream': 'stderr',
+\ 'executable': 'stack',
+\ 'command': 'stack ghc -- -fno-code -v0 %t',
+\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
+\})