2017-02-14 22:47:53 +00:00
|
|
|
|
Execute(The ghc handler should handle hdevtools output):
|
2017-06-25 16:08:57 +00:00
|
|
|
|
call ale#test#SetFilename('foo.hs')
|
|
|
|
|
|
2017-02-14 22:47:53 +00:00
|
|
|
|
AssertEqual
|
|
|
|
|
\ [
|
2017-04-24 20:11:27 +00:00
|
|
|
|
\ {
|
|
|
|
|
\ 'lnum': 147,
|
|
|
|
|
\ 'type': 'W',
|
|
|
|
|
\ 'col': 62,
|
|
|
|
|
\ 'text': '• Couldnt match type ‘a -> T.Text’ with ‘T.Text’ Expected type: [T.Text]',
|
|
|
|
|
\ },
|
2017-02-14 22:47:53 +00:00
|
|
|
|
\ ],
|
2017-06-25 16:08:57 +00:00
|
|
|
|
\ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
|
|
|
|
|
\ 'foo.hs:147:62: warning:',
|
2017-02-14 22:47:53 +00:00
|
|
|
|
\ '• Couldnt match type ‘a -> T.Text’ with ‘T.Text’',
|
|
|
|
|
\ ' Expected type: [T.Text]',
|
|
|
|
|
\ ])
|
|
|
|
|
|
2017-02-14 22:47:53 +00:00
|
|
|
|
Execute(The ghc handler should handle ghc 8 output):
|
2017-06-25 16:08:57 +00:00
|
|
|
|
call ale#test#SetFilename('src/Appoint/Lib.hs')
|
|
|
|
|
|
2017-02-14 22:47:53 +00:00
|
|
|
|
AssertEqual
|
|
|
|
|
\ [
|
2017-04-24 20:11:27 +00:00
|
|
|
|
\ {
|
|
|
|
|
\ 'lnum': 6,
|
|
|
|
|
\ 'type': 'E',
|
|
|
|
|
\ 'col': 1,
|
|
|
|
|
\ 'text': ' Failed to load interface for ‘GitHub.Data’ Use -v to see a list of the files searched for.',
|
|
|
|
|
\ },
|
|
|
|
|
\ {
|
|
|
|
|
\ 'lnum': 7,
|
|
|
|
|
\ 'type': 'W',
|
|
|
|
|
\ 'col': 1,
|
|
|
|
|
\ 'text': ' Failed to load interface for ‘GitHub.Endpoints.PullRequests’ Use -v to see a list of the files searched for.',
|
|
|
|
|
\ },
|
2017-02-14 22:47:53 +00:00
|
|
|
|
\ ],
|
2017-06-25 16:08:57 +00:00
|
|
|
|
\ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
|
2017-02-14 22:47:53 +00:00
|
|
|
|
\ '',
|
|
|
|
|
\ 'src/Appoint/Lib.hs:6:1: error:',
|
|
|
|
|
\ ' Failed to load interface for ‘GitHub.Data’',
|
|
|
|
|
\ ' Use -v to see a list of the files searched for.',
|
|
|
|
|
\ '',
|
2017-02-14 22:47:53 +00:00
|
|
|
|
\ 'src/Appoint/Lib.hs:7:1: warning:',
|
2017-02-14 22:47:53 +00:00
|
|
|
|
\ ' Failed to load interface for ‘GitHub.Endpoints.PullRequests’',
|
|
|
|
|
\ ' Use -v to see a list of the files searched for.',
|
|
|
|
|
\ ])
|
2017-02-14 22:47:53 +00:00
|
|
|
|
|
|
|
|
|
Execute(The ghc handler should handle ghc 7 output):
|
2017-06-25 16:08:57 +00:00
|
|
|
|
call ale#test#SetFilename('src/Main.hs')
|
|
|
|
|
|
2017-02-14 22:47:53 +00:00
|
|
|
|
AssertEqual
|
|
|
|
|
\ [
|
2017-04-24 20:11:27 +00:00
|
|
|
|
\ {
|
|
|
|
|
\ 'lnum': 168,
|
|
|
|
|
\ 'type': 'E',
|
|
|
|
|
\ 'col': 1,
|
|
|
|
|
\ 'text': ' parse error (possibly incorrect indentation or mismatched brackets)',
|
|
|
|
|
\ },
|
2017-02-14 22:47:53 +00:00
|
|
|
|
\ ],
|
2017-06-25 16:08:57 +00:00
|
|
|
|
\ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
|
2017-02-14 22:47:53 +00:00
|
|
|
|
\ 'src/Main.hs:168:1:',
|
|
|
|
|
\ ' parse error (possibly incorrect indentation or mismatched brackets)',
|
|
|
|
|
\ ])
|