[Template-haskell] Generating function implementations from a list of patterns