Update for GHC 7.8

Tested on 7.6 and 7.7.