From 6275c72e7afab9742f9b01be896e4c456ab86c90 Mon Sep 17 00:00:00 2001 From: takenoko Date: Sun, 22 Apr 2018 21:23:50 +0900 Subject: [PATCH] Add an option to use stack --- autoload/ghcmod.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/ghcmod.vim b/autoload/ghcmod.vim index 145c614..e511615 100644 --- a/autoload/ghcmod.vim +++ b/autoload/ghcmod.vim @@ -246,6 +246,9 @@ endfunction "}}} function! ghcmod#build_command(args) "{{{ let l:cmd = ['ghc-mod', '--silent'] + if get(g:, 'ghcmod_use_stack', 0) + let l:cmd = ['stack', 'exec', '--'] + l:cmd + endif let l:dist_top = s:find_basedir() . '/dist' let l:sandboxes = split(glob(l:dist_top . '/dist-*', 1), '\n')