Accommodate template-haskell 2.8

I see now that somebody else has already submitted a similar patch, but since I've already made this one, I figure I'll submit it as well.