-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some re-exports, raise minimum GHC to 8.6, remove unneeded CPP
- Loading branch information
Showing
21 changed files
with
198 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
" Enable hlint and GHC via Cabal | ||
let g:ale_linters = {'haskell': ['cabal-build']} | ||
" ... only | ||
let g:ale_linters_explicit = 1 | ||
" Don't lint until I save | ||
let g:ale_lint_on_text_changed = 'never' | ||
let g:ale_lint_on_insert_leave = 0 | ||
let g:ale_lint_on_enter = 0 | ||
|
||
call ale#Set('haskell_cabal_build_options', '') | ||
|
||
function! GetCabalCommand(buffer) abort | ||
let l:flags = ale#Var(a:buffer, 'haskell_cabal_build_options') | ||
return 'cabal new-build ' . l:flags | ||
endfunction | ||
|
||
call ale#linter#Define('haskell', { | ||
\ 'name': 'cabal_build', | ||
\ 'aliases': ['cabal-build'], | ||
\ 'output_stream': 'stderr', | ||
\ 'executable': 'cabal', | ||
\ 'command': function('GetCabalCommand'), | ||
\ 'callback': 'ale#handlers#haskell#HandleGHCFormat', | ||
\}) | ||
|
||
let g:neoformat_enabled_cabal = [] | ||
|
||
let g:neoformat_enabled_haskell = [] | ||
|
||
" Enable automagic autoformatting | ||
augroup fmt | ||
autocmd! | ||
autocmd BufWritePre * undojoin | Neoformat | ||
augroup end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.