Skip to content

Instantly share code, notes, and snippets.

@tjweir
Last active May 17, 2018 19:01
Show Gist options
  • Save tjweir/ebf47110cba58de3740d44c15738dae5 to your computer and use it in GitHub Desktop.
Save tjweir/ebf47110cba58de3740d44c15738dae5 to your computer and use it in GitHub Desktop.
Make a TAGS file for my current Emacs–based Haskell dev.
#!/bin/sh
TAGS_LOCATION=$HOME/g/haskell-tags/TAGS
rm $TAGS_LOCATION
touch $TAGS_LOCATION
LIB_GHC=$HOME/g/haskell/ghc/libraries
LIB_SERVANT=$HOME/g/haskell/ghc/libraries
LIB_PERSISTENT=$HOME/g/haskell/ghc/libraries
LIB_EVENTFUL=$HOME/g/haskell/ghc/libraries
HASKTAGS_CMD="hasktags --tags-absolute --append --etags . --ignore-close-implementation --output $TAGS_LOCATION"
cd $LIB_GHC && $HASKTAGS_CMD
cd $LIB_SERVANT && $HASKTAGS_CMD
cd $LIB_PERSISTENT && $HASKTAGS_CMD
cd $LIB_EVENTFUL && $HASKTAGS_CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment