mirror of
https://github.com/dense-analysis/ale
synced 2024-12-18 12:25:17 +00:00
19 lines
518 B
VimL
19 lines
518 B
VimL
" 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': function('ale_linters#haskell#ghc#GetCommand'),
|
|
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
|
|
\})
|