summaryrefslogtreecommitdiff
path: root/ale_linters/haskell/ghc-mod.vim
blob: 1b15d8c2a85d9a2fc9e8facb82a8f6c4c7c0d87a (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 --map-file %s=%t check %s',
\   'callback': 'ale#handlers#haskell#HandleGHCFormat',
\})

call ale#linter#Define('haskell', {
\   'name': 'stack-ghc-mod',
\   'executable': 'stack',
\   'command': 'stack exec ghc-mod -- --map-file %s=%t check %s',
\   'callback': 'ale#handlers#haskell#HandleGHCFormat',
\})