summaryrefslogtreecommitdiff
path: root/ale_linters/haskell
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-08 23:55:58 +0100
committerw0rp <devw0rp@gmail.com>2016-10-08 23:55:58 +0100
commit1ea0eda36cac8fc39b2227c8b9c4ea75e48a4be3 (patch)
tree5f30a1496b16f4266b33303ba0d576e5a5c16306 /ale_linters/haskell
parent16a150b27785e18fc9f15d66f02578ac72ffa834 (diff)
downloadale-1ea0eda36cac8fc39b2227c8b9c4ea75e48a4be3.zip
Correct all Vint warnings
Diffstat (limited to 'ale_linters/haskell')
-rw-r--r--ale_linters/haskell/ghc.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/haskell/ghc.vim b/ale_linters/haskell/ghc.vim
index 0e6c2cf1..5af4bb3d 100644
--- a/ale_linters/haskell/ghc.vim
+++ b/ale_linters/haskell/ghc.vim
@@ -22,14 +22,14 @@ function! ale_linters#haskell#ghc#Handle(buffer, lines)
for line in a:lines
if len(matchlist(line, pattern)) > 0
call add(corrected_lines, line)
- if line !~ ': error:$'
+ if line !~# ': error:$'
call add(corrected_lines, '')
endif
- elseif line == ''
+ elseif line ==# ''
call add(corrected_lines, line)
else
if len(corrected_lines) > 0
- if corrected_lines[-1] =~ ': error:$'
+ if corrected_lines[-1] =~# ': error:$'
let line = substitute(line, '\v^\s+', ' ', '')
endif
let corrected_lines[-1] .= line