Simon Peyton Jones <[email protected]> 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
signature.asc
Description: PGP signature
_______________________________________________ ghc-devs mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
