Update for GHC 7.8

Tested on 7.4 and 7.7.