mirror of
1
0
Fork 0
ultimate-vim/sources_non_forked/ale/ale_linters/haskell/cabal_ghc.vim

21 lines
644 B
VimL
Raw Normal View History

2018-07-30 17:18:16 -04:00
" Author: Eric Wolf <ericwolf42@gmail.com>
" Description: ghc for Haskell files called with cabal exec
call ale#Set('haskell_cabal_ghc_options', '-fno-code -v0')
function! ale_linters#haskell#cabal_ghc#GetCommand(buffer) abort
2021-05-05 04:25:00 -04:00
return 'cabal exec -- ghc '
2018-07-30 17:18:16 -04:00
\ . ale#Var(a:buffer, 'haskell_cabal_ghc_options')
\ . ' %t'
endfunction
call ale#linter#Define('haskell', {
\ 'name': 'cabal_ghc',
\ 'aliases': ['cabal-ghc'],
\ 'output_stream': 'stderr',
\ 'executable': 'cabal',
2021-05-05 04:25:00 -04:00
\ 'cwd': '%s:h',
2019-03-08 06:04:56 -05:00
\ 'command': function('ale_linters#haskell#cabal_ghc#GetCommand'),
2018-07-30 17:18:16 -04:00
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
\})