typo in package name, add template haskell function for instances