2017-04-22 08:23:23 -04:00
|
|
|
|
Execute(HandleGhcFormat should handle ghc-mod problems):
|
2017-06-25 12:08:57 -04:00
|
|
|
|
call ale#test#SetFilename('check2.hs')
|
|
|
|
|
|
2017-04-22 08:23:23 -04:00
|
|
|
|
AssertEqual
|
|
|
|
|
\ [
|
|
|
|
|
\ {
|
|
|
|
|
\ 'lnum': 2,
|
|
|
|
|
\ 'col': 1,
|
|
|
|
|
\ 'type': 'E',
|
|
|
|
|
\ 'text': 'Failed to load interface for ‘Missing’Use -v to see a list of the files searched for.',
|
|
|
|
|
\ },
|
|
|
|
|
\ {
|
|
|
|
|
\ 'lnum': 2,
|
|
|
|
|
\ 'col': 1,
|
|
|
|
|
\ 'type': 'E',
|
2017-07-07 05:59:00 -04:00
|
|
|
|
\ 'text': 'Suggestion: Use camelCaseFound: my_variable = ...Why not: myVariable = ...',
|
2017-04-22 08:23:23 -04:00
|
|
|
|
\ },
|
|
|
|
|
\ {
|
|
|
|
|
\ 'lnum': 6,
|
|
|
|
|
\ 'col': 1,
|
2017-07-07 05:59:00 -04:00
|
|
|
|
\ 'type': 'W',
|
|
|
|
|
\ 'text': 'Eta reduceFound: myFunc x = succ xWhy not: myFunc = succ',
|
2017-04-22 08:23:23 -04:00
|
|
|
|
\ },
|
|
|
|
|
\ ],
|
|
|
|
|
\ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
|
2017-06-25 12:08:57 -04:00
|
|
|
|
\ 'check2.hs:2:1:Failed to load interface for ‘Missing’Use -v to see a list of the files searched for.',
|
2017-04-22 08:23:23 -04:00
|
|
|
|
\ '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',
|
2017-06-25 12:08:57 -04:00
|
|
|
|
\ 'xxx.hs:6:1: Warning: Eta reduceFound: myFunc x = succ xWhy not: myFunc = succ',
|
2017-04-22 08:23:23 -04:00
|
|
|
|
\ ])
|