Skip to content

Commit

Permalink
Fix eagletmt#97: Invoke ghc-mod with --silent flag
Browse files Browse the repository at this point in the history
This hides the warnings about if ghc-mod uses stack or cabal-install
which otherwise confuses the Vim plugin parsing the output.
  • Loading branch information
jimenezrick committed Jun 13, 2016
1 parent 815616e commit bd62ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/ghcmod.vim
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function! ghcmod#add_autogen_dir(path, cmd) "{{{
endfunction "}}}

function! ghcmod#build_command(args) "{{{
let l:cmd = ['ghc-mod']
let l:cmd = ['ghc-mod', '--silent']

let l:dist_top = s:find_basedir() . '/dist'
let l:sandboxes = split(glob(l:dist_top . '/dist-*', 1), '\n')
Expand Down Expand Up @@ -341,7 +341,7 @@ function! s:find_basedir() "{{{
try
lcd `=expand('%:p:h')`
let b:ghcmod_basedir =
\ substitute(vimproc#system(['ghc-mod', 'root']), '\n*$', '', '')
\ substitute(vimproc#system(['ghc-mod', '--silent', 'root']), '\n*$', '', '')
finally
lcd `=l:dir`
endtry
Expand Down

0 comments on commit bd62ee5

Please sign in to comment.