[Template-haskell] Useful TH library functions