[Template-haskell] automatic instances for pretty printing and parsing