Fix #690 - Filter out errors from other files for Haskell

This commit is contained in:
w0rp
2017-06-25 17:08:57 +01:00
parent 229a1c092a
commit 93473a4101
5 changed files with 44 additions and 12 deletions

View File

@@ -1,4 +1,6 @@
Execute(HandleGhcFormat should handle ghc-mod problems):
call ale#test#SetFilename('check2.hs')
AssertEqual
\ [
\ {
@@ -21,7 +23,8 @@ Execute(HandleGhcFormat should handle ghc-mod problems):
\ },
\ ],
\ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
\ 'check1.hs:2:1:Failed to load interface for MissingUse -v to see a list of the files searched for.',
\ 'check2.hs:2:1:Failed to load interface for MissingUse -v to see a list of the files searched for.',
\ 'check2.hs:2:1: Suggestion: Use camelCaseFound: my_variable = ...Why not: myVariable = ...',
\ 'check2.hs:6:1: Warning: Eta reduceFound: myFunc x = succ xWhy not: myFunc = succ',
\ 'xxx.hs:6:1: Warning: Eta reduceFound: myFunc x = succ xWhy not: myFunc = succ',
\ ])