exuberant-ctags, haskell, vim, tlist plugin

Hi. I'm a happy vim user and enjoyed using the Tlist plugin which shows only the methods and classes described in a file.. But it uses exuberant-ctags to "parse" the files which doesn't support haskell, yet. Has anyone already added haskell support? Is someone else interested? Other solutions perhaps another editor? Here are some screenshots of the tlist plugin for vim: http://www.geocities.com/yegappan/taglist/screenshots.html Marc

If you try a recent snapshot of cvs ghc, its ghci should support generating
project-wide tags files for emacs and vim (btw, the online help for vim has
another example of using tags for code browsing: showing the definition
for the identifier under cursor in a preview window - very handy for data
types;-).
you'd still have to interface Tlist to haskell tags somehow, I guess?
hth,
claus
----- Original Message -----
From: "Marc Weber"
Hi. I'm a happy vim user and enjoyed using the Tlist plugin which shows only the methods and classes described in a file.. But it uses exuberant-ctags to "parse" the files which doesn't support haskell, yet. Has anyone already added haskell support? Is someone else interested? Other solutions perhaps another editor?
Here are some screenshots of the tlist plugin for vim: http://www.geocities.com/yegappan/taglist/screenshots.html
Marc _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Marc Weber wrote:
Hi. I'm a happy vim user and enjoyed using the Tlist plugin which shows only the methods and classes described in a file.. But it uses exuberant-ctags to "parse" the files which doesn't support haskell, yet. Has anyone already added haskell support? Is someone else interested?
I hacked together basic haskell support for ctags some time ago, but never really did anything with it.. There's a patch against ctags 5.5.2 here: http://zarquon.se/misc/ctags-5.5.2-haskell.diff /Peter

Hello Marc, Thursday, December 22, 2005, 7:22:38 PM, you wrote: MW> exuberant-ctags to "parse" the files which doesn't support haskell, yet. search for "hasktags". i have a slightly modified version of this program, which also finds function definitions without prototypes -- Best regards, Bulat mailto:bulatz@HotPOP.com

Thanks Claus, Peter Claus: I've now patched the tlist plugin to use hasktags distributed with ghc.. But exuberant-ctags also adds a character as tag description (e.g f for function c for class) which hasktags doesn't. Peter: Thanks, it's working great.. Why didn't you contribute it to ctags? Here is my bash script to download, patch, configure and build. I couldn't manage to use cvs download and then cvs update to version 5.5.4 to let cvs resolve conflicts.. There wouldn't have been any, would there? Because changes are very simple in this case. Perhaps someone else is interested.. I think especially patching could have been done with less lines (?) ----------------------- #!/bin/bash v="5.5.2" d="ctags-$v" wget -nc http://puzzle.dl.sourceforge.net/sourceforge/ctags/ctags-5.5.2.tar.gz wget -nc http://zarquon.se/misc/ctags-5.5.2-haskell.diff tar xvfz ctags-$v.tar.gz # split diff file: csplit.exe -k ctags-5.5.2-haskell.diff /\^diff/ {*} # touch file to be able to patch it. touch "$d/haskell.c" for i in xx*; do # get filename from file patchwith=$(sed -n -e 's/.*\(ctags-5.5.2\/[^ ]*\).*/\1/' -e '1p' $i) if [[ ! -z $patchwith ]]; then echo patching file $patchwith diff is $i patch $patchwith < $i fi done cd ctags-$v ./configure make -------------------------------------- Marc

Claus: I've now patched the tlist plugin to use hasktags distributed with ghc.. But exuberant-ctags also adds a character as tag description (e.g f for function c for class) which hasktags doesn't.
I wasn't talking about hasktags (which I found somewhat limited last time I tried), but about ghci's :ctags/:etags (I think those are the command names now, it is :tags in my version). I guess tag descriptions could be added, as long as they fit somewhere into the comment format of tags files.. of course it would be even nicer to ask ghc interactively about haskell-specific information, just as the visualstudio plugin does. but as long as things work for you now.. cheers, claus ps: happy holidays everyone!-)
participants (4)
-
Bulat Ziganshin
-
Claus Reinke
-
Marc Weber
-
Peter Strand