b50a7318fb
* Add stack-build linter for Haskell The stack-build linter works better than the other two linters when you're working with an entire Haskell project. It builds the project entirely and reports any errors. The other two Haskell GHC linters only work on single files, which can result in spurious errors (for example, not being able to find imports). * Document all available Haskell linters * Split GHC checkers into separate files
14 lines
476 B
VimL
14 lines
476 B
VimL
" Author: Jake Zimmerman <jake@zimmerman.io>
|
|
" Description: Like stack-ghc, but for entire projects
|
|
"
|
|
" Note: Ideally, this would *only* typecheck. Right now, it also does codegen.
|
|
" See <https://github.com/commercialhaskell/stack/issues/977>.
|
|
|
|
call ale#linter#Define('haskell', {
|
|
\ 'name': 'stack-build',
|
|
\ 'output_stream': 'stderr',
|
|
\ 'executable': 'stack',
|
|
\ 'command': 'stack build',
|
|
\ 'lint_file': 1,
|
|
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
|
|
\})
|