e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
18 lines
518 B
VimL
18 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',
|
|
\})
|