summaryrefslogtreecommitdiff
path: root/ale_linters/haskell/ghc-mod.vim
blob: d3d23649f6cd0730aadc6f6f8aa52ca609f2f0fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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',
\})