home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.emacs:2683 comp.lang.functional:942
- Path: sparky!uunet!darwin.sura.net!Sirius.dfn.de!zrz.tu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uknet!glasgow!kh
- From: kh@dcs.glasgow.ac.uk (Kevin Hammond)
- Newsgroups: comp.emacs,comp.lang.functional
- Subject: Re: Emacs TAGS for haskell / gofer
- Message-ID: <1992Jul23.095845.14355@dcs.glasgow.ac.uk>
- Date: 23 Jul 92 09:58:45 GMT
- References: <1834@miranda>
- Distribution: eunet
- Organization: Computing Sci, Glasgow Univ, Scotland
- Lines: 34
-
- In article <1834@miranda> eglen@uk.co.gec-mrc (Stephen Eglen) writes:
- > I am writing some Haskell code within the emacs editor. Does anyone
- >know of a program that will create a TAGS file, given some haskell files?
-
- Yes, the parser for the new Glasgow compiler will do this. Use the -E option.
- The Glasgow Haskell compiler is available from ftp.dcs.glasgow.ac.uk [130.209.240.50]
- in pub/haskell/glasgow/ghc-0.08.tar.Z (remember to use binary mode for transfer).
- The parser can be run independently of the compiler. If there's sufficient
- interest, we could make this available separately. We use it to navigate our
- Haskell compiler (many thousands of lines), so you should find it fairly reliable.
- It handles data, type, class, instance and where declarations, as well as top-level
- definitions. It understands multiple clauses for the same function.
-
- Since the Gofer syntax is similar to Haskell, it will probably handle
- most Gofer scripts, too, but that's not something I've bothered to
- try.
-
- There's also a sed script for tagging (offhand, I've forgotten the
- author, sorry) available from the Manchester archive. It may be in our
- release too, but it's not easy for me to check...
-
- >Alternatively, does anyone know what the format of the TAGS file is so
- >that I can try to generate one?
-
- It's fairly simple, but to do a really good job you need to write a
- Haskell parser, anyway!
-
- Kevin
-
-
-
- --
- This Signature Intentionally Left Blank. E-mail: kh@dcs.glasgow.ac.uk
- ^^^
-