Fix some Vint problems.

This commit is contained in:
w0rp 2016-10-19 22:21:39 +01:00
parent f8f24854e3
commit 9e4d7c1b9d
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ endif
let g:loaded_ale_linters_haskell_hlint = 1
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 = []
@ -20,7 +20,7 @@ function! ale_linters#haskell#hlint#Handle(buffer, lines)
\ 'vcol': 0,
\ 'col': l:error.startColumn + 0,
\ 'text': l:error.severity . ': ' . l:error.hint,
\ 'type': l:error.severity == 'Error' ? 'E' : 'W',
\ 'type': l:error.severity ==# 'Error' ? 'E' : 'W',
\})
endfor