Make it compile for GHC 7.6.x

Not sure if this is correct given the number of changes in GHC 7.6.x