diff options
author | Kevin Tindall <kevinkjt2000@gmail.com> | 2018-01-01 22:21:21 -0600 |
---|---|---|
committer | Kevin Tindall <kevinkjt2000@gmail.com> | 2018-01-01 22:21:21 -0600 |
commit | d8f71c46daf21706fa0f2f87de14e04d6675fa5b (patch) | |
tree | c5f097d2d656f9356c7140bba22a87e3a2e6a629 /ale_linters/haskell | |
parent | c165c7c5d11eb827a3be6bab691f20eeb6f6e487 (diff) | |
download | ale-d8f71c46daf21706fa0f2f87de14e04d6675fa5b.zip |
haskell_ghc_options are now added to the ghc command
Diffstat (limited to 'ale_linters/haskell')
-rw-r--r-- | ale_linters/haskell/ghc.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ale_linters/haskell/ghc.vim b/ale_linters/haskell/ghc.vim index fdf22f9f..daf91c8f 100644 --- a/ale_linters/haskell/ghc.vim +++ b/ale_linters/haskell/ghc.vim @@ -1,10 +1,18 @@ " Author: w0rp <devw0rp@gmail.com> " Description: ghc for Haskell files +call ale#Set('haskell_ghc_options', '-fno-code -v0') + +function! ale_linters#haskell#ghc#GetCommand(buffer) abort + return 'ghc ' + \ . ale#Var(a:buffer, 'haskell_ghc_options') + \ . ' %t' +endfunction + call ale#linter#Define('haskell', { \ 'name': 'ghc', \ 'output_stream': 'stderr', \ 'executable': 'ghc', -\ 'command': 'ghc -fno-code -v0 %t', +\ 'command_callback': 'ale_linters#haskell#ghc#GetCommand', \ 'callback': 'ale#handlers#haskell#HandleGHCFormat', \}) |