Merge pull request #1260 from kevinkjt2000/add-ghc-options
haskell_ghc_options are now added to the ghc command
This commit is contained in:
commit
5285b0b332
@ -1,10 +1,18 @@
|
|||||||
" Author: w0rp <devw0rp@gmail.com>
|
" Author: w0rp <devw0rp@gmail.com>
|
||||||
" Description: ghc for Haskell files
|
" Description: ghc for Haskell files
|
||||||
|
|
||||||
|
call ale#Set('haskell_ghc_options', '-fno-code -v0')
|
||||||
|
|
||||||
|
function! ale_linters#haskell#ghc#GetCommand(buffer) abort
|
||||||
|
return 'ghc '
|
||||||
|
\ . ale#Var(a:buffer, 'haskell_ghc_options')
|
||||||
|
\ . ' %t'
|
||||||
|
endfunction
|
||||||
|
|
||||||
call ale#linter#Define('haskell', {
|
call ale#linter#Define('haskell', {
|
||||||
\ 'name': 'ghc',
|
\ 'name': 'ghc',
|
||||||
\ 'output_stream': 'stderr',
|
\ 'output_stream': 'stderr',
|
||||||
\ 'executable': 'ghc',
|
\ 'executable': 'ghc',
|
||||||
\ 'command': 'ghc -fno-code -v0 %t',
|
\ 'command_callback': 'ale_linters#haskell#ghc#GetCommand',
|
||||||
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
|
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat',
|
||||||
\})
|
\})
|
||||||
|
@ -12,6 +12,16 @@ g:ale_haskell_brittany_executable *g:ale_haskell_brittany_executable*
|
|||||||
|
|
||||||
This variable can be changed to use a different executable for brittany.
|
This variable can be changed to use a different executable for brittany.
|
||||||
|
|
||||||
|
===============================================================================
|
||||||
|
ghc *ale-haskell-ghc*
|
||||||
|
|
||||||
|
g:ale_haskell_ghc_options *g:ale_haskell_ghc_options*
|
||||||
|
*b:ale_haskell_ghc_options*
|
||||||
|
Type: |String|
|
||||||
|
Default: `'-fno-code -v0'`
|
||||||
|
|
||||||
|
This variable can be changed to modify flags given to ghc.
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
hdevtools *ale-haskell-hdevtools*
|
hdevtools *ale-haskell-hdevtools*
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ CONTENTS *ale-contents*
|
|||||||
ember-template-lint.................|ale-handlebars-embertemplatelint|
|
ember-template-lint.................|ale-handlebars-embertemplatelint|
|
||||||
haskell...............................|ale-haskell-options|
|
haskell...............................|ale-haskell-options|
|
||||||
brittany............................|ale-haskell-brittany|
|
brittany............................|ale-haskell-brittany|
|
||||||
|
ghc.................................|ale-haskell-ghc|
|
||||||
hdevtools...........................|ale-haskell-hdevtools|
|
hdevtools...........................|ale-haskell-hdevtools|
|
||||||
hfmt................................|ale-haskell-hfmt|
|
hfmt................................|ale-haskell-hfmt|
|
||||||
stack-build.........................|ale-haskell-stack-build|
|
stack-build.........................|ale-haskell-stack-build|
|
||||||
|
Loading…
Reference in New Issue
Block a user