#1791 Set the working directory for cabal and stack

This commit is contained in:
Ian Shipman
2019-04-17 08:26:09 -05:00
committed by w0rp
parent 104980e40b
commit 2eb68f6d23
4 changed files with 8 additions and 6 deletions

View File

@@ -10,8 +10,8 @@ Execute(The linter should not be executed when there's no stack.yaml file):
Execute(The linter should be executed when there is a stack.yaml file):
call ale#test#SetFilename('stack_ghc_paths/test.hs')
AssertLinter 'stack', 'stack ghc -- -fno-code -v0 %t'
AssertLinter 'stack', ale#path#BufferCdString(bufnr('')) . 'stack ghc -- -fno-code -v0 %t'
let b:ale_haskell_stack_ghc_options = 'foobar'
AssertLinter 'stack', 'stack ghc -- foobar %t'
AssertLinter 'stack', ale#path#BufferCdString(bufnr('')) . 'stack ghc -- foobar %t'