You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
Before:
|
|
runtime ale_linters/idris/idris.vim
|
|
|
|
Execute(The idris handler should parse messages that reference a single column):
|
|
call ale#test#SetFilename('/tmp/foo.idr')
|
|
|
|
AssertEqual
|
|
\ [
|
|
\ {
|
|
\ 'lnum': 4,
|
|
\ 'col': 5,
|
|
\ 'type': 'E',
|
|
\ 'text': 'When checking right hand side of main with expected type IO () When checking an application of function Prelude.Monad.>>=: Type mismatch between IO () (Type of putStrLn _) and _ -> _ (Is putStrLn _ applied to too many arguments?) Specifically: Type mismatch between IO and \uv => _ -> uv'
|
|
\ }
|
|
\ ],
|
|
\ ale_linters#idris#idris#Handle(bufnr(''), [
|
|
\ '/tmp/foo.idr:4:5:',
|
|
\ 'When checking right hand side of main with expected type',
|
|
\ ' IO ()',
|
|
\ '',
|
|
\ 'When checking an application of function Prelude.Monad.>>=:',
|
|
\ ' Type mismatch between',
|
|
\ ' IO () (Type of putStrLn _)',
|
|
\ ' and',
|
|
\ ' _ -> _ (Is putStrLn _ applied to too many arguments?)',
|
|
\ '',
|
|
\ ' Specifically:',
|
|
\ ' Type mismatch between',
|
|
\ ' IO',
|
|
\ ' and',
|
|
\ ' \uv => _ -> uv',
|
|
\ ])
|
|
|
|
Execute(The idris handler should parse messages that reference a column range):
|
|
call ale#test#SetFilename('/tmp/foo.idr')
|
|
|
|
AssertEqual
|
|
\ [
|
|
\ {
|
|
\ 'lnum': 11,
|
|
\ 'col': 11,
|
|
\ 'type': 'E',
|
|
\ 'text': 'When checking right hand side of Main.case block in main at /tmp/foo.idr:10:10 with expected type IO () Last statement in do block must be an expression'
|
|
\ }
|
|
\ ],
|
|
\ ale_linters#idris#idris#Handle(bufnr(''), [
|
|
\ '/tmp/foo.idr:11:11-13:',
|
|
\ 'When checking right hand side of Main.case block in main at /tmp/foo.idr:10:10 with expected type',
|
|
\ ' IO ()',
|
|
\ '',
|
|
\ 'Last statement in do block must be an expression',
|
|
\ ])
|