Add 'needsTemplateHaskell' utility function and document why one might