diff options
author | Jake Zimmerman <zimmerman.jake@gmail.com> | 2017-07-11 07:05:13 -0500 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2017-07-11 13:05:13 +0100 |
commit | 768f761017e4d67d8724684df874006d5b04147d (patch) | |
tree | d7be5238419ab11313ded9edd06d73547ec578e5 /ale_linters/haskell/stack_ghc.vim | |
parent | 05d3bb12ddea96b8f93b6e06eea94c4969dc5c72 (diff) | |
download | ale-768f761017e4d67d8724684df874006d5b04147d.zip |
Prefer --fast for stack-build (#754)
* Vim scripts shouldn't have hyphens
Especially not ones that will be autoloaded. You can't have a hyphen in
a function name, so autoloading functions based on filename will fail.
* Add g:haskell_stack_build_options, default: --fast
If we're going to use the --fast option, we may as well go the whole 9
yards and let the user configure the 'stack build' flags.
* Create documentation for stack-build options
Diffstat (limited to 'ale_linters/haskell/stack_ghc.vim')
-rw-r--r-- | ale_linters/haskell/stack_ghc.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ale_linters/haskell/stack_ghc.vim b/ale_linters/haskell/stack_ghc.vim new file mode 100644 index 00000000..0367dc24 --- /dev/null +++ b/ale_linters/haskell/stack_ghc.vim @@ -0,0 +1,10 @@ +" Author: w0rp <devw0rp@gmail.com> +" Description: ghc for Haskell files, using Stack + +call ale#linter#Define('haskell', { +\ 'name': 'stack-ghc', +\ 'output_stream': 'stderr', +\ 'executable': 'stack', +\ 'command': 'stack ghc -- -fno-code -v0 %t', +\ 'callback': 'ale#handlers#haskell#HandleGHCFormat', +\}) |