2017-04-22 12:23:23 +00:00
|
|
|
" Author: wizzup <wizzup@gmail.com>
|
|
|
|
" Description: ghc-mod for Haskell files
|
|
|
|
|
|
|
|
call ale#linter#Define('haskell', {
|
|
|
|
\ 'name': 'ghc-mod',
|
|
|
|
\ 'executable': 'ghc-mod',
|
2017-08-12 16:50:27 +00:00
|
|
|
\ 'command': 'ghc-mod --map-file %s=%t check %s',
|
2017-04-22 12:23:23 +00:00
|
|
|
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
|
|
|
|
\})
|
|
|
|
|
|
|
|
call ale#linter#Define('haskell', {
|
|
|
|
\ 'name': 'stack-ghc-mod',
|
|
|
|
\ 'executable': 'stack',
|
2017-08-18 18:33:23 +00:00
|
|
|
\ 'command': 'stack exec ghc-mod -- --map-file %s=%t check %s',
|
2017-04-22 12:23:23 +00:00
|
|
|
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
|
|
|
|
\})
|