[Template-haskell] Type inference