Fix some Vint problems.
This commit is contained in:
parent
f8f24854e3
commit
9e4d7c1b9d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in a new issue