summaryrefslogtreecommitdiff
path: root/ale_linters/haskell/hlint.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/haskell/hlint.vim')
-rw-r--r--ale_linters/haskell/hlint.vim8
1 files changed, 1 insertions, 7 deletions
diff --git a/ale_linters/haskell/hlint.vim b/ale_linters/haskell/hlint.vim
index accae374..91e65123 100644
--- a/ale_linters/haskell/hlint.vim
+++ b/ale_linters/haskell/hlint.vim
@@ -2,15 +2,9 @@
" Description: hlint for Haskell files
function! ale_linters#haskell#hlint#Handle(buffer, lines) abort
- if empty(a:lines)
- return []
- endif
-
- let l:errors = json_decode(join(a:lines, ''))
-
let l:output = []
- for l:error in l:errors
+ for l:error in ale#util#FuzzyJSONDecode(a:lines, [])
if l:error.severity ==# 'Error'
let l:type = 'E'
elseif l:error.severity ==# 'Suggestion'