Haskell: add ghc-mod linter
This commit is contained in:
parent
d4466d4be7
commit
3f33dc7d98
4 changed files with 45 additions and 2 deletions
16
ale_linters/haskell/ghc-mod.vim
Normal file
16
ale_linters/haskell/ghc-mod.vim
Normal file
|
@ -0,0 +1,16 @@
|
|||
" Author: wizzup <wizzup@gmail.com>
|
||||
" Description: ghc-mod for Haskell files
|
||||
|
||||
call ale#linter#Define('haskell', {
|
||||
\ 'name': 'ghc-mod',
|
||||
\ 'executable': 'ghc-mod',
|
||||
\ 'command': 'ghc-mod check %t',
|
||||
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
|
||||
\})
|
||||
|
||||
call ale#linter#Define('haskell', {
|
||||
\ 'name': 'stack-ghc-mod',
|
||||
\ 'executable': 'stack',
|
||||
\ 'command': 'stack exec ghc-mod check %t',
|
||||
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
|
||||
\})
|
Loading…
Add table
Add a link
Reference in a new issue