title: vim EasyTags, per file type tags command?
body: <p>I use the excellent <a href="https://github.com/xolox/vim-easytags" rel="nofollow">EasyTags</a> plugin with vim.  My only problem with it is that Exuberant CTags does not support Haskell.  However, there are several programs which do generate Haskell vim tags files correctly and I already use the per file type tags file option in EasyTags.</p>
  
  <p>Is there a way to tell EasyTags to use different ctags program on a per filetype basis?  I could write a wrapper script and set that as the global ctags program but would prefer a cleaner solution.</p>
  
  <p>I've tried</p>
  
  <pre><code>:autocmd FileType haskell let g:easytags_cmd = '~/.cabal/bin/lushtags'
  </code></pre>
  
  <p>But EasyTags seems to attempt to query the ctags program for a list of supported languages so when I open a Haskell file with this option enabled I get an error.</p>
  
  <p><code><pre>
  "Data/Csv/Conduit.hs" [RO] 51L, 1950C
  Error detected while processing function xolox#easytags#register..xolox#easytags#get_tagsfi
  le..xolox#easytags#supported_filetypes..34_check_filetype:
  line    3:
  E605: Exception not caught: Failed to get supported languages! (output: Usage: lushtags [op
  tions] [--] )
  Error detected while processing function xolox#easytags#register..xolox#easytags#get_tagsfi
  le..xolox#easytags#supported_filetypes:
  line   14:
  E171: Missing :endif
  Error detected while processing function xolox#easytags#register..xolox#easytags#get_tagsfi
  </pre></code></p>