From b4498d3a03bc583e2f5d5e8a13dbacc94277da37 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Fri, 11 Sep 2015 00:34:11 -0300 Subject: [PATCH] Remove inferred cabal include paths --- autoload/ghcmod.vim | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/autoload/ghcmod.vim b/autoload/ghcmod.vim index ac24af4..d276f6b 100644 --- a/autoload/ghcmod.vim +++ b/autoload/ghcmod.vim @@ -246,27 +246,6 @@ endfunction "}}} function! ghcmod#build_command(args) "{{{ let l:cmd = ['ghc-mod'] - - let l:dist_top = s:find_basedir() . '/dist' - let l:sandboxes = split(glob(l:dist_top . '/dist-*', 1), '\n') - for l:dist_dir in [l:dist_top] + l:sandboxes - let l:build_dir = l:dist_dir . '/build' - if isdirectory(l:build_dir) - call ghcmod#add_autogen_dir(l:build_dir, l:cmd) - - let l:tmps = ghcmod#util#globlist(l:build_dir . '/*/*-tmp') - if !empty(l:tmps) - " add *-tmp directory to include path for executable project - for l:tmp in l:tmps - call extend(l:cmd, ['-g', '-i' . l:tmp, '-g', '-I' . l:tmp]) - endfor - else - " add build directory to include path for library project - call extend(l:cmd, ['-g', '-i' . l:build_dir, '-g', '-I' . l:build_dir]) - endif - endif - endfor - if exists('b:ghcmod_ghc_options') let l:opts = b:ghcmod_ghc_options else