diff options
author | Anthony Poon <marquis.andras@gmail.com> | 2018-10-26 01:30:49 +1100 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2018-10-25 15:30:49 +0100 |
commit | 02c0d5bcb9f7d4191a5e069aa0b8cd4065d6c039 (patch) | |
tree | 69211b13e1083789394f376a8a79c1e71c8a31b7 /ale_linters/haskell/stack_ghc.vim | |
parent | 9bdd5771ef85ca24aeadab80bb1d0976920e9305 (diff) | |
download | ale-02c0d5bcb9f7d4191a5e069aa0b8cd4065d6c039.zip |
Only run stack if a stack.yaml config is found (#1752)
* Only run stack if a stack.yaml config is found
It is necessary to check for a stack.yaml file to distinguish between
cabal-only projects or stack projects (which are also cabal projects
since stack is built on top of cabal).
* Test that stack is called if stack.yaml exists
Diffstat (limited to 'ale_linters/haskell/stack_ghc.vim')
-rw-r--r-- | ale_linters/haskell/stack_ghc.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/haskell/stack_ghc.vim b/ale_linters/haskell/stack_ghc.vim index d702aa68..8f42b96c 100644 --- a/ale_linters/haskell/stack_ghc.vim +++ b/ale_linters/haskell/stack_ghc.vim @@ -5,7 +5,7 @@ call ale#linter#Define('haskell', { \ 'name': 'stack_ghc', \ 'aliases': ['stack-ghc'], \ 'output_stream': 'stderr', -\ 'executable': 'stack', +\ 'executable_callback': 'ale#handlers#haskell#GetStackExecutable', \ 'command': 'stack ghc -- -fno-code -v0 %t', \ 'callback': 'ale#handlers#haskell#HandleGHCFormat', \}) |