fast-tags
fast-tags copied to clipboard
Support for alex/happy/c2hs
I mentioned this on the mailing list and I figured I'd mention it here so that it can be tracked and to indicate interest.
fast-tags
fits into my workflow better than using echo ':ctags' | cabal new-repl
and so if such a feature were added I would use it instead.
Thanks!
I think there are two steps for this: fast-tags has to recognize LINE pragmas, and then you have to run it on the generated .hs output, not the alex or happy source. It's not to hard if you don't use the incremental update, because what used to be fast-tags -R src
would become fast-tags -R src dist/build
(or wherever the build system sticks the generated .hs files). For incremental update, you'd have to convince vim that when you save Something.x it should actually run fast-tags dist/build/Something.hs
. That's not bad actually, just do a autocmd *.x fast-tags 'dist/build/' subst('.x', '.hs', expand('%'))
, or whatever mongrel syntax vim uses for that.
If I implement the LINE pragma support, would that be enough for you to make it useful?
works for me!