Remove template-haskell's code

Do not merge this.
This is created for our product which runs on ghc 7.6.x.