diff options
author | Ian Shipman <ics.github@gambolingpangolin.com> | 2019-04-17 08:26:09 -0500 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2019-04-17 14:26:09 +0100 |
commit | 2eb68f6d23f51c33f3d64a15172c869e71d7829b (patch) | |
tree | f7fc87ffc40668159c21f5d1261a82bbb07163eb /ale_linters/haskell | |
parent | 104980e40bf2d2fdd100c04aba73d5c1ad2660ab (diff) | |
download | ale-2eb68f6d23f51c33f3d64a15172c869e71d7829b.zip |
#1791 Set the working directory for cabal and stack
Diffstat (limited to 'ale_linters/haskell')
-rw-r--r-- | ale_linters/haskell/cabal_ghc.vim | 3 | ||||
-rw-r--r-- | ale_linters/haskell/stack_ghc.vim | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ale_linters/haskell/cabal_ghc.vim b/ale_linters/haskell/cabal_ghc.vim index 59978e7e..f3f248f5 100644 --- a/ale_linters/haskell/cabal_ghc.vim +++ b/ale_linters/haskell/cabal_ghc.vim @@ -4,7 +4,8 @@ call ale#Set('haskell_cabal_ghc_options', '-fno-code -v0') function! ale_linters#haskell#cabal_ghc#GetCommand(buffer) abort - return 'cabal exec -- ghc ' + return ale#path#BufferCdString(a:buffer) + \ . 'cabal exec -- ghc ' \ . ale#Var(a:buffer, 'haskell_cabal_ghc_options') \ . ' %t' endfunction diff --git a/ale_linters/haskell/stack_ghc.vim b/ale_linters/haskell/stack_ghc.vim index 06af7f6d..c345fe43 100644 --- a/ale_linters/haskell/stack_ghc.vim +++ b/ale_linters/haskell/stack_ghc.vim @@ -4,7 +4,8 @@ call ale#Set('haskell_stack_ghc_options', '-fno-code -v0') function! ale_linters#haskell#stack_ghc#GetCommand(buffer) abort - return ale#handlers#haskell#GetStackExecutable(a:buffer) + return ale#path#BufferCdString(a:buffer) + \ . ale#handlers#haskell#GetStackExecutable(a:buffer) \ . ' ghc -- ' \ . ale#Var(a:buffer, 'haskell_stack_ghc_options') \ . ' %t' |