http://hackage.haskell.org/cgi-bin/hackage-scripts/package/htags htags is a tag file generator to enable extra functionality in editors like vim. It expands upon hasktags by using a full Haskell 98 parser and options for recursion. -- David Sankel Sankel Software www.sankelsoftware.com 585 617 4748 (Office) 585 309 2016 (Mobile)
Excerpts from David Sankel's message of Mon Nov 03 19:25:23 +0100 2008:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/htags
htags is a tag file generator to enable extra functionality in editors like vim. It expands upon hasktags by using a full Haskell 98 parser and options for recursion.
Hi, I've just tried to install it and the build fails here (GHC 6.8.3) $ cabal update $ cabal install htags ──(Mon,Nov03)─┘ Resolving dependencies... Downloading htags-1.0... Configuring htags-1.0... Preprocessing executables for htags-1.0... Building htags-1.0... src/htags.hs:8:7: Could not find module `GenTags': Use -v to see a list of the files searched for. cabal: Error: some packages failed to install: htags-1.0 failed during the building phase. The exception was: exit: ExitFailure 1 Best regards, -- Nicolas Pouillard aka Ertai
nicolas.pouillard:
Excerpts from David Sankel's message of Mon Nov 03 19:25:23 +0100 2008:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/htags
htags is a tag file generator to enable extra functionality in editors like vim. It expands upon hasktags by using a full Haskell 98 parser and options for recursion.
Hi,
I've just tried to install it and the build fails here (GHC 6.8.3)
$ cabal update $ cabal install htags ──(Mon,Nov03)─┘ Resolving dependencies... Downloading htags-1.0... Configuring htags-1.0... Preprocessing executables for htags-1.0... Building htags-1.0...
src/htags.hs:8:7: Could not find module `GenTags': Use -v to see a list of the files searched for. cabal: Error: some packages failed to install: htags-1.0 failed during the building phase. The exception was: exit: ExitFailure 1
Worked for me. Package for Arch Linux, http://aur.archlinux.org/packages.php?ID=21145
On Mon, Nov 03, 2008 at 01:25:23PM -0500, David Sankel wrote:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/htags
htags is a tag file generator to enable extra functionality in editors like vim. It expands upon hasktags by using a full Haskell 98 parser and options for recursion. Maybe you want to take some ideas from my enhanced hasktags version: http://mawercer.de/~nix/hasktags.hs
It has some features such as indexing only the first of those three matches (if they are found within 5 lines).. foo :: MyType -> IO () foo (Bar _) = foo (Cee _) = It's still not perfect. How do you handle extensions and cpp stuff? I mean will your program still parse #ifdef foo = #else foo = #endif ? No it doesn't. I've tried it. It doesn't handle .lhs files as well. Maybe it would be nice to have one hasktag program providing different strategies on hackage which could by synchronized with the one distributed with ghc? For vim you can also add tag classes (eg telling vim wether a found token is a (f)unction or a (c)lass ..) See the output of my enhanced version to generate some examples. Apart from .lhs and #ifdefs htags seems to work fine. Marc
Nice! FWIW, there's also GHC's version of ghctags which uses the GHC API. This is both good and bad: Good: - Precise source information - Parses everything that GHC parses (and typechecks) - It automatically runs GHC's pre-processors. Bad: - The source has to typecheck. - It's rather slow (then again you don't run it very often) I'm using it for the GHC source code, and it works rather well now. If anyone is interested we could certainly release a version that works with 6.10.1 (or if someone wants to backport it, go ahead). Cheers, Thomas 2008/11/3 David Sankel <camior@gmail.com>:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/htags
htags is a tag file generator to enable extra functionality in editors like vim. It expands upon hasktags by using a full Haskell 98 parser and options for recursion.
-- David Sankel Sankel Software www.sankelsoftware.com 585 617 4748 (Office) 585 309 2016 (Mobile) _______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
participants (5)
-
David Sankel -
Don Stewart -
Marc Weber -
Nicolas Pouillard -
Thomas Schilling