Ticket #12 (assigned defect)
set makeprg=cabal\ build?
|Reported by:||kowey||Owned by:||haskellmode|
Any use for this sort of thing anywhere?
function! SetToCabalBuild() if glob("*.cabal") != '' set makeprg=cabal\ build endif endfunction autocmd BufEnter *.hs,*.lhs :call SetToCabalBuild()
I haven't tried to use the Haskell vim scripts yet, so apologies if it's redundant. I just noticed that the makeprg stuff seems to only have examples for GHC.