2018-03-31 10:55:20 -04:00
|
|
|
" 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',
|
2019-03-08 06:04:56 -05:00
|
|
|
\ 'command': function('ale_linters#haskell#ghc#GetCommand'),
|
2018-03-31 10:55:20 -04:00
|
|
|
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
|
|
|
|
\})
|