c4afd72792
This adds support for the hdevtools haskell linter https://github.com/hdevtools/hdevtools The output for hdevtools is near identical to the ghc output so this also extracts the ghc handler into the handle file and adds tests
23 lines
559 B
VimL
23 lines
559 B
VimL
" Author: w0rp <devw0rp@gmail.com>
|
|
" Description: ghc for Haskell files
|
|
|
|
if exists('g:loaded_ale_linters_haskell_ghc')
|
|
finish
|
|
endif
|
|
|
|
call ale#linter#Define('haskell', {
|
|
\ 'name': 'ghc',
|
|
\ 'output_stream': 'stderr',
|
|
\ 'executable': 'ghc',
|
|
\ 'command': 'ghc -fno-code -v0 %t',
|
|
\ 'callback': 'ale#handlers#HandleGhcFormat',
|
|
\})
|
|
|
|
call ale#linter#Define('haskell', {
|
|
\ 'name': 'stack-ghc',
|
|
\ 'output_stream': 'stderr',
|
|
\ 'executable': 'stack',
|
|
\ 'command': 'stack ghc -- -fno-code -v0 %t',
|
|
\ 'callback': 'ale#handlers#HandleGhcFormat',
|
|
\})
|