Fix some Vint problems.

This commit is contained in:
w0rp 2016-10-19 22:21:39 +01:00
parent f8f24854e3
commit 9e4d7c1b9d

View file

@ -8,7 +8,7 @@ endif
let g:loaded_ale_linters_haskell_hlint = 1 let g:loaded_ale_linters_haskell_hlint = 1
function! ale_linters#haskell#hlint#Handle(buffer, lines) function! ale_linters#haskell#hlint#Handle(buffer, lines)
let l:errors = json_decode(join(a:lines, "")) let l:errors = json_decode(join(a:lines, ''))
let l:output = [] let l:output = []
@ -20,7 +20,7 @@ function! ale_linters#haskell#hlint#Handle(buffer, lines)
\ 'vcol': 0, \ 'vcol': 0,
\ 'col': l:error.startColumn + 0, \ 'col': l:error.startColumn + 0,
\ 'text': l:error.severity . ': ' . l:error.hint, \ 'text': l:error.severity . ': ' . l:error.hint,
\ 'type': l:error.severity == 'Error' ? 'E' : 'W', \ 'type': l:error.severity ==# 'Error' ? 'E' : 'W',
\}) \})
endfor endfor