Tags
Ben Gamari
ben at smart-cactus.org
Mon Sep 5 20:19:24 UTC 2022
Simon Peyton Jones <simon.peytonjones at gmail.com> writes:
> I love emacs' tags-query-replace function, which allows me to do a
> search-and-replace across an entire repo. But to do that I need a TAGS
> file that, at least, lists all the Hsakell files in GHC.
>
> What is the approved way to construct a TAGS file for a bunch of Haskell
> modules? Is this documented anywhere?
>
I haven't tried this recently on GHC but my first instinct would be to
use hasktags [1]:
$ cabal install hasktags
$ hasktags --etags ./compiler
At some point in the past I would have said that ideally Hadrian would
be able to build such a thing. However, at this point TAGS files are
slowly falling out of fashion in favor of language servers.
Another way to reach a similar end would be to rather search-and-replace
across all git-tracked files. However, somewhat surprisingly, a bit of
Googling didn't turn up any easy way of accomplishing this. The
closest I can find is [1].
Cheers,
- Ben
[1] https://emacs.stackexchange.com/questions/37286/find-and-replace-a-text-among-the-files-of-a-project
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20220905/2970203f/attachment.sig>
More information about the ghc-devs
mailing list