diff options
Diffstat (limited to 'ale_linters/haskell/stack-build.vim')
-rw-r--r-- | ale_linters/haskell/stack-build.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ale_linters/haskell/stack-build.vim b/ale_linters/haskell/stack-build.vim new file mode 100644 index 00000000..1c2a06f6 --- /dev/null +++ b/ale_linters/haskell/stack-build.vim @@ -0,0 +1,14 @@ +" Author: Jake Zimmerman <jake@zimmerman.io> +" Description: Like stack-ghc, but for entire projects +" +" Note: Ideally, this would *only* typecheck. Right now, it also does codegen. +" See <https://github.com/commercialhaskell/stack/issues/977>. + +call ale#linter#Define('haskell', { +\ 'name': 'stack-build', +\ 'output_stream': 'stderr', +\ 'executable': 'stack', +\ 'command': 'stack build', +\ 'lint_file': 1, +\ 'callback': 'ale#handlers#haskell#HandleGHCFormat', +\}) |