instances package:th-orphans

It provides the following instances: More recent versions of template-haskell provide these instances. However, in order to support older versions you should import this module.