02c0d5bcb9
* Only run stack if a stack.yaml config is found It is necessary to check for a stack.yaml file to distinguish between cabal-only projects or stack projects (which are also cabal projects since stack is built on top of cabal). * Test that stack is called if stack.yaml exists
12 lines
386 B
VimL
12 lines
386 B
VimL
" Author: w0rp <devw0rp@gmail.com>
|
|
" Description: ghc for Haskell files, using Stack
|
|
|
|
call ale#linter#Define('haskell', {
|
|
\ 'name': 'stack_ghc',
|
|
\ 'aliases': ['stack-ghc'],
|
|
\ 'output_stream': 'stderr',
|
|
\ 'executable_callback': 'ale#handlers#haskell#GetStackExecutable',
|
|
\ 'command': 'stack ghc -- -fno-code -v0 %t',
|
|
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
|
|
\})
|