summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-08-13 15:30:46 +0100
committerGitHub <noreply@github.com>2017-08-13 15:30:46 +0100
commita5d7bb449b593db4e383017057849ee8c853de12 (patch)
treeca51bcfdbc7b6f79d017e1ab869a8387983ec05f
parentae6cecabb682a2dab04351e7cfd572f465bca3bb (diff)
parent626568d66d6c57a87cbbed830986e3087d1afca0 (diff)
downloadale-a5d7bb449b593db4e383017057849ee8c853de12.zip
Merge pull request #846 from voanhduy1512/ghc-mod
Make ghc-mod linter check current buffer
-rw-r--r--ale_linters/haskell/ghc-mod.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/haskell/ghc-mod.vim b/ale_linters/haskell/ghc-mod.vim
index d3d23649..35f94c33 100644
--- a/ale_linters/haskell/ghc-mod.vim
+++ b/ale_linters/haskell/ghc-mod.vim
@@ -4,13 +4,13 @@
call ale#linter#Define('haskell', {
\ 'name': 'ghc-mod',
\ 'executable': 'ghc-mod',
-\ 'command': 'ghc-mod check %t',
+\ 'command': 'ghc-mod --map-file %s=%t check %s',
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
\})
call ale#linter#Define('haskell', {
\ 'name': 'stack-ghc-mod',
\ 'executable': 'stack',
-\ 'command': 'stack exec ghc-mod check %t',
+\ 'command': 'stack exec ghc-mod --map-file %s=%t check %s',
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
\})