Skip to content

Instantly share code, notes, and snippets.

@mkrauskopf
Created September 8, 2012 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkrauskopf/3673150 to your computer and use it in GitHub Desktop.
Save mkrauskopf/3673150 to your computer and use it in GitHub Desktop.
Simple Haskell tags generator
#!/bin/bash
#
# Regenerates Haskell tags in the current directory.
#
set -e
# Needed for case-sensitive searching. See:
#
# - Sort Files Like A Master With The Linux Sort Command (Bash)
# http://www.skorks.com/2010/05/sort-files-like-a-master-with-the-linux-sort-command-bash/
#
export LC_ALL=C
find -type f | egrep \.hs$\|\.lhs$ | xargs -Ii hothasktags i | sort > tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment