Ticket #12 (assigned defect)

Opened 8 years ago

Last modified 7 years ago

set makeprg=cabal\ build?

Reported by: kowey Owned by: haskellmode
Priority: major Milestone:
Component: --- Version:
Keywords: Cc:


Any use for this sort of thing anywhere?

function! SetToCabalBuild()
  if glob("*.cabal") != ''
    set makeprg=cabal\ build

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.

Change History

Changed 7 years ago by haskellmode

  • owner changed from claus to haskellmode
  • status changed from new to assigned

Proper cabal support would be nice to have. Adding it in little pieces like the one above would be a more pragmatic approach than waiting for an extended review.

Note: See TracTickets for help on using tickets.